text.pyi 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. """Stub file for reflex/components/radix/themes/typography/text.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.components.component import ComponentNamespace
  7. from reflex.components.core.breakpoints import Breakpoints
  8. from reflex.components.el import elements
  9. from reflex.components.markdown.markdown import MarkdownComponentMap
  10. from reflex.event import EventType
  11. from reflex.style import Style
  12. from reflex.vars.base import Var
  13. from ..base import RadixThemesComponent
  14. LiteralType = Literal[
  15. "p",
  16. "label",
  17. "div",
  18. "span",
  19. "b",
  20. "i",
  21. "u",
  22. "abbr",
  23. "cite",
  24. "del",
  25. "em",
  26. "ins",
  27. "kbd",
  28. "mark",
  29. "s",
  30. "samp",
  31. "sub",
  32. "sup",
  33. ]
  34. class Text(elements.Span, RadixThemesComponent, MarkdownComponentMap):
  35. @overload
  36. @classmethod
  37. def create( # type: ignore
  38. cls,
  39. *children,
  40. as_child: Optional[Union[Var[bool], bool]] = None,
  41. as_: Optional[
  42. Union[
  43. Literal[
  44. "abbr",
  45. "b",
  46. "cite",
  47. "del",
  48. "div",
  49. "em",
  50. "i",
  51. "ins",
  52. "kbd",
  53. "label",
  54. "mark",
  55. "p",
  56. "s",
  57. "samp",
  58. "span",
  59. "sub",
  60. "sup",
  61. "u",
  62. ],
  63. Var[
  64. Literal[
  65. "abbr",
  66. "b",
  67. "cite",
  68. "del",
  69. "div",
  70. "em",
  71. "i",
  72. "ins",
  73. "kbd",
  74. "label",
  75. "mark",
  76. "p",
  77. "s",
  78. "samp",
  79. "span",
  80. "sub",
  81. "sup",
  82. "u",
  83. ]
  84. ],
  85. ]
  86. ] = None,
  87. size: Optional[
  88. Union[
  89. Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  90. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  91. Var[
  92. Union[
  93. Breakpoints[
  94. str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  95. ],
  96. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  97. ]
  98. ],
  99. ]
  100. ] = None,
  101. weight: Optional[
  102. Union[
  103. Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
  104. Literal["bold", "light", "medium", "regular"],
  105. Var[
  106. Union[
  107. Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
  108. Literal["bold", "light", "medium", "regular"],
  109. ]
  110. ],
  111. ]
  112. ] = None,
  113. align: Optional[
  114. Union[
  115. Breakpoints[str, Literal["center", "left", "right"]],
  116. Literal["center", "left", "right"],
  117. Var[
  118. Union[
  119. Breakpoints[str, Literal["center", "left", "right"]],
  120. Literal["center", "left", "right"],
  121. ]
  122. ],
  123. ]
  124. ] = None,
  125. trim: Optional[
  126. Union[
  127. Breakpoints[str, Literal["both", "end", "normal", "start"]],
  128. Literal["both", "end", "normal", "start"],
  129. Var[
  130. Union[
  131. Breakpoints[str, Literal["both", "end", "normal", "start"]],
  132. Literal["both", "end", "normal", "start"],
  133. ]
  134. ],
  135. ]
  136. ] = None,
  137. color_scheme: Optional[
  138. Union[
  139. Literal[
  140. "amber",
  141. "blue",
  142. "bronze",
  143. "brown",
  144. "crimson",
  145. "cyan",
  146. "gold",
  147. "grass",
  148. "gray",
  149. "green",
  150. "indigo",
  151. "iris",
  152. "jade",
  153. "lime",
  154. "mint",
  155. "orange",
  156. "pink",
  157. "plum",
  158. "purple",
  159. "red",
  160. "ruby",
  161. "sky",
  162. "teal",
  163. "tomato",
  164. "violet",
  165. "yellow",
  166. ],
  167. Var[
  168. Literal[
  169. "amber",
  170. "blue",
  171. "bronze",
  172. "brown",
  173. "crimson",
  174. "cyan",
  175. "gold",
  176. "grass",
  177. "gray",
  178. "green",
  179. "indigo",
  180. "iris",
  181. "jade",
  182. "lime",
  183. "mint",
  184. "orange",
  185. "pink",
  186. "plum",
  187. "purple",
  188. "red",
  189. "ruby",
  190. "sky",
  191. "teal",
  192. "tomato",
  193. "violet",
  194. "yellow",
  195. ]
  196. ],
  197. ]
  198. ] = None,
  199. high_contrast: Optional[Union[Var[bool], bool]] = None,
  200. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  201. auto_capitalize: Optional[
  202. Union[Var[Union[bool, int, str]], bool, int, str]
  203. ] = None,
  204. content_editable: Optional[
  205. Union[Var[Union[bool, int, str]], bool, int, str]
  206. ] = None,
  207. context_menu: Optional[
  208. Union[Var[Union[bool, int, str]], bool, int, str]
  209. ] = None,
  210. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  211. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  212. enter_key_hint: Optional[
  213. Union[Var[Union[bool, int, str]], bool, int, str]
  214. ] = None,
  215. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  216. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  217. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  218. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  219. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  220. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  221. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  222. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  223. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  224. style: Optional[Style] = None,
  225. key: Optional[Any] = None,
  226. id: Optional[Any] = None,
  227. class_name: Optional[Any] = None,
  228. autofocus: Optional[bool] = None,
  229. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  230. on_blur: Optional[EventType[()]] = None,
  231. on_click: Optional[EventType[()]] = None,
  232. on_context_menu: Optional[EventType[()]] = None,
  233. on_double_click: Optional[EventType[()]] = None,
  234. on_focus: Optional[EventType[()]] = None,
  235. on_mount: Optional[EventType[()]] = None,
  236. on_mouse_down: Optional[EventType[()]] = None,
  237. on_mouse_enter: Optional[EventType[()]] = None,
  238. on_mouse_leave: Optional[EventType[()]] = None,
  239. on_mouse_move: Optional[EventType[()]] = None,
  240. on_mouse_out: Optional[EventType[()]] = None,
  241. on_mouse_over: Optional[EventType[()]] = None,
  242. on_mouse_up: Optional[EventType[()]] = None,
  243. on_scroll: Optional[EventType[()]] = None,
  244. on_unmount: Optional[EventType[()]] = None,
  245. **props,
  246. ) -> "Text":
  247. """Create a new component instance.
  248. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  249. other UI libraries for common names, like Text and Button.
  250. Args:
  251. *children: Child components.
  252. as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
  253. as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
  254. size: Text size: "1" - "9"
  255. weight: Thickness of text: "light" | "regular" | "medium" | "bold"
  256. align: Alignment of text in element: "left" | "center" | "right"
  257. trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
  258. color_scheme: Overrides the accent color inherited from the Theme.
  259. high_contrast: Whether to render the text with higher contrast color
  260. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  261. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  262. content_editable: Indicates whether the element's content is editable.
  263. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  264. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  265. draggable: Defines whether the element can be dragged.
  266. enter_key_hint: Hints what media types the media element is able to play.
  267. hidden: Defines whether the element is hidden.
  268. input_mode: Defines the type of the element.
  269. item_prop: Defines the name of the element for metadata purposes.
  270. lang: Defines the language used in the element.
  271. role: Defines the role of the element.
  272. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  273. spell_check: Defines whether the element may be checked for spelling errors.
  274. tab_index: Defines the position of the current element in the tabbing order.
  275. title: Defines a tooltip for the element.
  276. style: The style of the component.
  277. key: A unique key for the component.
  278. id: The id for the component.
  279. class_name: The class name for the component.
  280. autofocus: Whether the component should take the focus once the page is loaded
  281. custom_attrs: custom attribute
  282. **props: Component properties.
  283. Returns:
  284. A new component instance.
  285. """
  286. ...
  287. class Span(Text):
  288. @overload
  289. @classmethod
  290. def create( # type: ignore
  291. cls,
  292. *children,
  293. as_: Optional[
  294. Union[
  295. Literal[
  296. "abbr",
  297. "b",
  298. "cite",
  299. "del",
  300. "div",
  301. "em",
  302. "i",
  303. "ins",
  304. "kbd",
  305. "label",
  306. "mark",
  307. "p",
  308. "s",
  309. "samp",
  310. "span",
  311. "sub",
  312. "sup",
  313. "u",
  314. ],
  315. Var[
  316. Literal[
  317. "abbr",
  318. "b",
  319. "cite",
  320. "del",
  321. "div",
  322. "em",
  323. "i",
  324. "ins",
  325. "kbd",
  326. "label",
  327. "mark",
  328. "p",
  329. "s",
  330. "samp",
  331. "span",
  332. "sub",
  333. "sup",
  334. "u",
  335. ]
  336. ],
  337. ]
  338. ] = None,
  339. as_child: Optional[Union[Var[bool], bool]] = None,
  340. size: Optional[
  341. Union[
  342. Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  343. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  344. Var[
  345. Union[
  346. Breakpoints[
  347. str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  348. ],
  349. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  350. ]
  351. ],
  352. ]
  353. ] = None,
  354. weight: Optional[
  355. Union[
  356. Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
  357. Literal["bold", "light", "medium", "regular"],
  358. Var[
  359. Union[
  360. Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
  361. Literal["bold", "light", "medium", "regular"],
  362. ]
  363. ],
  364. ]
  365. ] = None,
  366. align: Optional[
  367. Union[
  368. Breakpoints[str, Literal["center", "left", "right"]],
  369. Literal["center", "left", "right"],
  370. Var[
  371. Union[
  372. Breakpoints[str, Literal["center", "left", "right"]],
  373. Literal["center", "left", "right"],
  374. ]
  375. ],
  376. ]
  377. ] = None,
  378. trim: Optional[
  379. Union[
  380. Breakpoints[str, Literal["both", "end", "normal", "start"]],
  381. Literal["both", "end", "normal", "start"],
  382. Var[
  383. Union[
  384. Breakpoints[str, Literal["both", "end", "normal", "start"]],
  385. Literal["both", "end", "normal", "start"],
  386. ]
  387. ],
  388. ]
  389. ] = None,
  390. color_scheme: Optional[
  391. Union[
  392. Literal[
  393. "amber",
  394. "blue",
  395. "bronze",
  396. "brown",
  397. "crimson",
  398. "cyan",
  399. "gold",
  400. "grass",
  401. "gray",
  402. "green",
  403. "indigo",
  404. "iris",
  405. "jade",
  406. "lime",
  407. "mint",
  408. "orange",
  409. "pink",
  410. "plum",
  411. "purple",
  412. "red",
  413. "ruby",
  414. "sky",
  415. "teal",
  416. "tomato",
  417. "violet",
  418. "yellow",
  419. ],
  420. Var[
  421. Literal[
  422. "amber",
  423. "blue",
  424. "bronze",
  425. "brown",
  426. "crimson",
  427. "cyan",
  428. "gold",
  429. "grass",
  430. "gray",
  431. "green",
  432. "indigo",
  433. "iris",
  434. "jade",
  435. "lime",
  436. "mint",
  437. "orange",
  438. "pink",
  439. "plum",
  440. "purple",
  441. "red",
  442. "ruby",
  443. "sky",
  444. "teal",
  445. "tomato",
  446. "violet",
  447. "yellow",
  448. ]
  449. ],
  450. ]
  451. ] = None,
  452. high_contrast: Optional[Union[Var[bool], bool]] = None,
  453. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  454. auto_capitalize: Optional[
  455. Union[Var[Union[bool, int, str]], bool, int, str]
  456. ] = None,
  457. content_editable: Optional[
  458. Union[Var[Union[bool, int, str]], bool, int, str]
  459. ] = None,
  460. context_menu: Optional[
  461. Union[Var[Union[bool, int, str]], bool, int, str]
  462. ] = None,
  463. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  464. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  465. enter_key_hint: Optional[
  466. Union[Var[Union[bool, int, str]], bool, int, str]
  467. ] = None,
  468. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  469. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  470. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  471. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  472. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  473. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  474. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  475. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  476. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  477. style: Optional[Style] = None,
  478. key: Optional[Any] = None,
  479. id: Optional[Any] = None,
  480. class_name: Optional[Any] = None,
  481. autofocus: Optional[bool] = None,
  482. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  483. on_blur: Optional[EventType[()]] = None,
  484. on_click: Optional[EventType[()]] = None,
  485. on_context_menu: Optional[EventType[()]] = None,
  486. on_double_click: Optional[EventType[()]] = None,
  487. on_focus: Optional[EventType[()]] = None,
  488. on_mount: Optional[EventType[()]] = None,
  489. on_mouse_down: Optional[EventType[()]] = None,
  490. on_mouse_enter: Optional[EventType[()]] = None,
  491. on_mouse_leave: Optional[EventType[()]] = None,
  492. on_mouse_move: Optional[EventType[()]] = None,
  493. on_mouse_out: Optional[EventType[()]] = None,
  494. on_mouse_over: Optional[EventType[()]] = None,
  495. on_mouse_up: Optional[EventType[()]] = None,
  496. on_scroll: Optional[EventType[()]] = None,
  497. on_unmount: Optional[EventType[()]] = None,
  498. **props,
  499. ) -> "Span":
  500. """Create a new component instance.
  501. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  502. other UI libraries for common names, like Text and Button.
  503. Args:
  504. *children: Child components.
  505. as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
  506. as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
  507. size: Text size: "1" - "9"
  508. weight: Thickness of text: "light" | "regular" | "medium" | "bold"
  509. align: Alignment of text in element: "left" | "center" | "right"
  510. trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
  511. color_scheme: Overrides the accent color inherited from the Theme.
  512. high_contrast: Whether to render the text with higher contrast color
  513. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  514. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  515. content_editable: Indicates whether the element's content is editable.
  516. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  517. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  518. draggable: Defines whether the element can be dragged.
  519. enter_key_hint: Hints what media types the media element is able to play.
  520. hidden: Defines whether the element is hidden.
  521. input_mode: Defines the type of the element.
  522. item_prop: Defines the name of the element for metadata purposes.
  523. lang: Defines the language used in the element.
  524. role: Defines the role of the element.
  525. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  526. spell_check: Defines whether the element may be checked for spelling errors.
  527. tab_index: Defines the position of the current element in the tabbing order.
  528. title: Defines a tooltip for the element.
  529. style: The style of the component.
  530. key: A unique key for the component.
  531. id: The id for the component.
  532. class_name: The class name for the component.
  533. autofocus: Whether the component should take the focus once the page is loaded
  534. custom_attrs: custom attribute
  535. **props: Component properties.
  536. Returns:
  537. A new component instance.
  538. """
  539. ...
  540. class Em(elements.Em, RadixThemesComponent):
  541. @overload
  542. @classmethod
  543. def create( # type: ignore
  544. cls,
  545. *children,
  546. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  547. auto_capitalize: Optional[
  548. Union[Var[Union[bool, int, str]], bool, int, str]
  549. ] = None,
  550. content_editable: Optional[
  551. Union[Var[Union[bool, int, str]], bool, int, str]
  552. ] = None,
  553. context_menu: Optional[
  554. Union[Var[Union[bool, int, str]], bool, int, str]
  555. ] = None,
  556. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  557. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  558. enter_key_hint: Optional[
  559. Union[Var[Union[bool, int, str]], bool, int, str]
  560. ] = None,
  561. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  562. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  563. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  564. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  565. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  566. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  567. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  568. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  569. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  570. style: Optional[Style] = None,
  571. key: Optional[Any] = None,
  572. id: Optional[Any] = None,
  573. class_name: Optional[Any] = None,
  574. autofocus: Optional[bool] = None,
  575. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  576. on_blur: Optional[EventType[()]] = None,
  577. on_click: Optional[EventType[()]] = None,
  578. on_context_menu: Optional[EventType[()]] = None,
  579. on_double_click: Optional[EventType[()]] = None,
  580. on_focus: Optional[EventType[()]] = None,
  581. on_mount: Optional[EventType[()]] = None,
  582. on_mouse_down: Optional[EventType[()]] = None,
  583. on_mouse_enter: Optional[EventType[()]] = None,
  584. on_mouse_leave: Optional[EventType[()]] = None,
  585. on_mouse_move: Optional[EventType[()]] = None,
  586. on_mouse_out: Optional[EventType[()]] = None,
  587. on_mouse_over: Optional[EventType[()]] = None,
  588. on_mouse_up: Optional[EventType[()]] = None,
  589. on_scroll: Optional[EventType[()]] = None,
  590. on_unmount: Optional[EventType[()]] = None,
  591. **props,
  592. ) -> "Em":
  593. """Create a new component instance.
  594. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  595. other UI libraries for common names, like Text and Button.
  596. Args:
  597. *children: Child components.
  598. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  599. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  600. content_editable: Indicates whether the element's content is editable.
  601. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  602. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  603. draggable: Defines whether the element can be dragged.
  604. enter_key_hint: Hints what media types the media element is able to play.
  605. hidden: Defines whether the element is hidden.
  606. input_mode: Defines the type of the element.
  607. item_prop: Defines the name of the element for metadata purposes.
  608. lang: Defines the language used in the element.
  609. role: Defines the role of the element.
  610. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  611. spell_check: Defines whether the element may be checked for spelling errors.
  612. tab_index: Defines the position of the current element in the tabbing order.
  613. title: Defines a tooltip for the element.
  614. style: The style of the component.
  615. key: A unique key for the component.
  616. id: The id for the component.
  617. class_name: The class name for the component.
  618. autofocus: Whether the component should take the focus once the page is loaded
  619. custom_attrs: custom attribute
  620. **props: Component properties.
  621. Returns:
  622. A new component instance.
  623. """
  624. ...
  625. class Kbd(elements.Kbd, RadixThemesComponent):
  626. @overload
  627. @classmethod
  628. def create( # type: ignore
  629. cls,
  630. *children,
  631. size: Optional[
  632. Union[
  633. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  634. Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  635. ]
  636. ] = None,
  637. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  638. auto_capitalize: Optional[
  639. Union[Var[Union[bool, int, str]], bool, int, str]
  640. ] = None,
  641. content_editable: Optional[
  642. Union[Var[Union[bool, int, str]], bool, int, str]
  643. ] = None,
  644. context_menu: Optional[
  645. Union[Var[Union[bool, int, str]], bool, int, str]
  646. ] = None,
  647. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  648. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  649. enter_key_hint: Optional[
  650. Union[Var[Union[bool, int, str]], bool, int, str]
  651. ] = None,
  652. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  653. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  654. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  655. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  656. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  657. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  658. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  659. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  660. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  661. style: Optional[Style] = None,
  662. key: Optional[Any] = None,
  663. id: Optional[Any] = None,
  664. class_name: Optional[Any] = None,
  665. autofocus: Optional[bool] = None,
  666. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  667. on_blur: Optional[EventType[()]] = None,
  668. on_click: Optional[EventType[()]] = None,
  669. on_context_menu: Optional[EventType[()]] = None,
  670. on_double_click: Optional[EventType[()]] = None,
  671. on_focus: Optional[EventType[()]] = None,
  672. on_mount: Optional[EventType[()]] = None,
  673. on_mouse_down: Optional[EventType[()]] = None,
  674. on_mouse_enter: Optional[EventType[()]] = None,
  675. on_mouse_leave: Optional[EventType[()]] = None,
  676. on_mouse_move: Optional[EventType[()]] = None,
  677. on_mouse_out: Optional[EventType[()]] = None,
  678. on_mouse_over: Optional[EventType[()]] = None,
  679. on_mouse_up: Optional[EventType[()]] = None,
  680. on_scroll: Optional[EventType[()]] = None,
  681. on_unmount: Optional[EventType[()]] = None,
  682. **props,
  683. ) -> "Kbd":
  684. """Create a new component instance.
  685. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  686. other UI libraries for common names, like Text and Button.
  687. Args:
  688. *children: Child components.
  689. size: Text size: "1" - "9"
  690. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  691. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  692. content_editable: Indicates whether the element's content is editable.
  693. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  694. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  695. draggable: Defines whether the element can be dragged.
  696. enter_key_hint: Hints what media types the media element is able to play.
  697. hidden: Defines whether the element is hidden.
  698. input_mode: Defines the type of the element.
  699. item_prop: Defines the name of the element for metadata purposes.
  700. lang: Defines the language used in the element.
  701. role: Defines the role of the element.
  702. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  703. spell_check: Defines whether the element may be checked for spelling errors.
  704. tab_index: Defines the position of the current element in the tabbing order.
  705. title: Defines a tooltip for the element.
  706. style: The style of the component.
  707. key: A unique key for the component.
  708. id: The id for the component.
  709. class_name: The class name for the component.
  710. autofocus: Whether the component should take the focus once the page is loaded
  711. custom_attrs: custom attribute
  712. **props: Component properties.
  713. Returns:
  714. A new component instance.
  715. """
  716. ...
  717. class Quote(elements.Q, RadixThemesComponent):
  718. @overload
  719. @classmethod
  720. def create( # type: ignore
  721. cls,
  722. *children,
  723. cite: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  724. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  725. auto_capitalize: Optional[
  726. Union[Var[Union[bool, int, str]], bool, int, str]
  727. ] = None,
  728. content_editable: Optional[
  729. Union[Var[Union[bool, int, str]], bool, int, str]
  730. ] = None,
  731. context_menu: Optional[
  732. Union[Var[Union[bool, int, str]], bool, int, str]
  733. ] = None,
  734. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  735. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  736. enter_key_hint: Optional[
  737. Union[Var[Union[bool, int, str]], bool, int, str]
  738. ] = None,
  739. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  740. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  741. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  742. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  743. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  744. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  745. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  746. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  747. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  748. style: Optional[Style] = None,
  749. key: Optional[Any] = None,
  750. id: Optional[Any] = None,
  751. class_name: Optional[Any] = None,
  752. autofocus: Optional[bool] = None,
  753. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  754. on_blur: Optional[EventType[()]] = None,
  755. on_click: Optional[EventType[()]] = None,
  756. on_context_menu: Optional[EventType[()]] = None,
  757. on_double_click: Optional[EventType[()]] = None,
  758. on_focus: Optional[EventType[()]] = None,
  759. on_mount: Optional[EventType[()]] = None,
  760. on_mouse_down: Optional[EventType[()]] = None,
  761. on_mouse_enter: Optional[EventType[()]] = None,
  762. on_mouse_leave: Optional[EventType[()]] = None,
  763. on_mouse_move: Optional[EventType[()]] = None,
  764. on_mouse_out: Optional[EventType[()]] = None,
  765. on_mouse_over: Optional[EventType[()]] = None,
  766. on_mouse_up: Optional[EventType[()]] = None,
  767. on_scroll: Optional[EventType[()]] = None,
  768. on_unmount: Optional[EventType[()]] = None,
  769. **props,
  770. ) -> "Quote":
  771. """Create a new component instance.
  772. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  773. other UI libraries for common names, like Text and Button.
  774. Args:
  775. *children: Child components.
  776. cite: Specifies the source URL of the quote.
  777. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  778. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  779. content_editable: Indicates whether the element's content is editable.
  780. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  781. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  782. draggable: Defines whether the element can be dragged.
  783. enter_key_hint: Hints what media types the media element is able to play.
  784. hidden: Defines whether the element is hidden.
  785. input_mode: Defines the type of the element.
  786. item_prop: Defines the name of the element for metadata purposes.
  787. lang: Defines the language used in the element.
  788. role: Defines the role of the element.
  789. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  790. spell_check: Defines whether the element may be checked for spelling errors.
  791. tab_index: Defines the position of the current element in the tabbing order.
  792. title: Defines a tooltip for the element.
  793. style: The style of the component.
  794. key: A unique key for the component.
  795. id: The id for the component.
  796. class_name: The class name for the component.
  797. autofocus: Whether the component should take the focus once the page is loaded
  798. custom_attrs: custom attribute
  799. **props: Component properties.
  800. Returns:
  801. A new component instance.
  802. """
  803. ...
  804. class Strong(elements.Strong, RadixThemesComponent):
  805. @overload
  806. @classmethod
  807. def create( # type: ignore
  808. cls,
  809. *children,
  810. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  811. auto_capitalize: Optional[
  812. Union[Var[Union[bool, int, str]], bool, int, str]
  813. ] = None,
  814. content_editable: Optional[
  815. Union[Var[Union[bool, int, str]], bool, int, str]
  816. ] = None,
  817. context_menu: Optional[
  818. Union[Var[Union[bool, int, str]], bool, int, str]
  819. ] = None,
  820. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  821. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  822. enter_key_hint: Optional[
  823. Union[Var[Union[bool, int, str]], bool, int, str]
  824. ] = None,
  825. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  826. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  827. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  828. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  829. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  830. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  831. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  832. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  833. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  834. style: Optional[Style] = None,
  835. key: Optional[Any] = None,
  836. id: Optional[Any] = None,
  837. class_name: Optional[Any] = None,
  838. autofocus: Optional[bool] = None,
  839. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  840. on_blur: Optional[EventType[()]] = None,
  841. on_click: Optional[EventType[()]] = None,
  842. on_context_menu: Optional[EventType[()]] = None,
  843. on_double_click: Optional[EventType[()]] = None,
  844. on_focus: Optional[EventType[()]] = None,
  845. on_mount: Optional[EventType[()]] = None,
  846. on_mouse_down: Optional[EventType[()]] = None,
  847. on_mouse_enter: Optional[EventType[()]] = None,
  848. on_mouse_leave: Optional[EventType[()]] = None,
  849. on_mouse_move: Optional[EventType[()]] = None,
  850. on_mouse_out: Optional[EventType[()]] = None,
  851. on_mouse_over: Optional[EventType[()]] = None,
  852. on_mouse_up: Optional[EventType[()]] = None,
  853. on_scroll: Optional[EventType[()]] = None,
  854. on_unmount: Optional[EventType[()]] = None,
  855. **props,
  856. ) -> "Strong":
  857. """Create a new component instance.
  858. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  859. other UI libraries for common names, like Text and Button.
  860. Args:
  861. *children: Child components.
  862. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  863. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  864. content_editable: Indicates whether the element's content is editable.
  865. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  866. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  867. draggable: Defines whether the element can be dragged.
  868. enter_key_hint: Hints what media types the media element is able to play.
  869. hidden: Defines whether the element is hidden.
  870. input_mode: Defines the type of the element.
  871. item_prop: Defines the name of the element for metadata purposes.
  872. lang: Defines the language used in the element.
  873. role: Defines the role of the element.
  874. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  875. spell_check: Defines whether the element may be checked for spelling errors.
  876. tab_index: Defines the position of the current element in the tabbing order.
  877. title: Defines a tooltip for the element.
  878. style: The style of the component.
  879. key: A unique key for the component.
  880. id: The id for the component.
  881. class_name: The class name for the component.
  882. autofocus: Whether the component should take the focus once the page is loaded
  883. custom_attrs: custom attribute
  884. **props: Component properties.
  885. Returns:
  886. A new component instance.
  887. """
  888. ...
  889. class TextNamespace(ComponentNamespace):
  890. em = staticmethod(Em.create)
  891. kbd = staticmethod(Kbd.create)
  892. quote = staticmethod(Quote.create)
  893. strong = staticmethod(Strong.create)
  894. span = staticmethod(Span.create)
  895. @staticmethod
  896. def __call__(
  897. *children,
  898. as_child: Optional[Union[Var[bool], bool]] = None,
  899. as_: Optional[
  900. Union[
  901. Literal[
  902. "abbr",
  903. "b",
  904. "cite",
  905. "del",
  906. "div",
  907. "em",
  908. "i",
  909. "ins",
  910. "kbd",
  911. "label",
  912. "mark",
  913. "p",
  914. "s",
  915. "samp",
  916. "span",
  917. "sub",
  918. "sup",
  919. "u",
  920. ],
  921. Var[
  922. Literal[
  923. "abbr",
  924. "b",
  925. "cite",
  926. "del",
  927. "div",
  928. "em",
  929. "i",
  930. "ins",
  931. "kbd",
  932. "label",
  933. "mark",
  934. "p",
  935. "s",
  936. "samp",
  937. "span",
  938. "sub",
  939. "sup",
  940. "u",
  941. ]
  942. ],
  943. ]
  944. ] = None,
  945. size: Optional[
  946. Union[
  947. Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
  948. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  949. Var[
  950. Union[
  951. Breakpoints[
  952. str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  953. ],
  954. Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
  955. ]
  956. ],
  957. ]
  958. ] = None,
  959. weight: Optional[
  960. Union[
  961. Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
  962. Literal["bold", "light", "medium", "regular"],
  963. Var[
  964. Union[
  965. Breakpoints[str, Literal["bold", "light", "medium", "regular"]],
  966. Literal["bold", "light", "medium", "regular"],
  967. ]
  968. ],
  969. ]
  970. ] = None,
  971. align: Optional[
  972. Union[
  973. Breakpoints[str, Literal["center", "left", "right"]],
  974. Literal["center", "left", "right"],
  975. Var[
  976. Union[
  977. Breakpoints[str, Literal["center", "left", "right"]],
  978. Literal["center", "left", "right"],
  979. ]
  980. ],
  981. ]
  982. ] = None,
  983. trim: Optional[
  984. Union[
  985. Breakpoints[str, Literal["both", "end", "normal", "start"]],
  986. Literal["both", "end", "normal", "start"],
  987. Var[
  988. Union[
  989. Breakpoints[str, Literal["both", "end", "normal", "start"]],
  990. Literal["both", "end", "normal", "start"],
  991. ]
  992. ],
  993. ]
  994. ] = None,
  995. color_scheme: Optional[
  996. Union[
  997. Literal[
  998. "amber",
  999. "blue",
  1000. "bronze",
  1001. "brown",
  1002. "crimson",
  1003. "cyan",
  1004. "gold",
  1005. "grass",
  1006. "gray",
  1007. "green",
  1008. "indigo",
  1009. "iris",
  1010. "jade",
  1011. "lime",
  1012. "mint",
  1013. "orange",
  1014. "pink",
  1015. "plum",
  1016. "purple",
  1017. "red",
  1018. "ruby",
  1019. "sky",
  1020. "teal",
  1021. "tomato",
  1022. "violet",
  1023. "yellow",
  1024. ],
  1025. Var[
  1026. Literal[
  1027. "amber",
  1028. "blue",
  1029. "bronze",
  1030. "brown",
  1031. "crimson",
  1032. "cyan",
  1033. "gold",
  1034. "grass",
  1035. "gray",
  1036. "green",
  1037. "indigo",
  1038. "iris",
  1039. "jade",
  1040. "lime",
  1041. "mint",
  1042. "orange",
  1043. "pink",
  1044. "plum",
  1045. "purple",
  1046. "red",
  1047. "ruby",
  1048. "sky",
  1049. "teal",
  1050. "tomato",
  1051. "violet",
  1052. "yellow",
  1053. ]
  1054. ],
  1055. ]
  1056. ] = None,
  1057. high_contrast: Optional[Union[Var[bool], bool]] = None,
  1058. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1059. auto_capitalize: Optional[
  1060. Union[Var[Union[bool, int, str]], bool, int, str]
  1061. ] = None,
  1062. content_editable: Optional[
  1063. Union[Var[Union[bool, int, str]], bool, int, str]
  1064. ] = None,
  1065. context_menu: Optional[
  1066. Union[Var[Union[bool, int, str]], bool, int, str]
  1067. ] = None,
  1068. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1069. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1070. enter_key_hint: Optional[
  1071. Union[Var[Union[bool, int, str]], bool, int, str]
  1072. ] = None,
  1073. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1074. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1075. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1076. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1077. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1078. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1079. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1080. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1081. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  1082. style: Optional[Style] = None,
  1083. key: Optional[Any] = None,
  1084. id: Optional[Any] = None,
  1085. class_name: Optional[Any] = None,
  1086. autofocus: Optional[bool] = None,
  1087. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  1088. on_blur: Optional[EventType[()]] = None,
  1089. on_click: Optional[EventType[()]] = None,
  1090. on_context_menu: Optional[EventType[()]] = None,
  1091. on_double_click: Optional[EventType[()]] = None,
  1092. on_focus: Optional[EventType[()]] = None,
  1093. on_mount: Optional[EventType[()]] = None,
  1094. on_mouse_down: Optional[EventType[()]] = None,
  1095. on_mouse_enter: Optional[EventType[()]] = None,
  1096. on_mouse_leave: Optional[EventType[()]] = None,
  1097. on_mouse_move: Optional[EventType[()]] = None,
  1098. on_mouse_out: Optional[EventType[()]] = None,
  1099. on_mouse_over: Optional[EventType[()]] = None,
  1100. on_mouse_up: Optional[EventType[()]] = None,
  1101. on_scroll: Optional[EventType[()]] = None,
  1102. on_unmount: Optional[EventType[()]] = None,
  1103. **props,
  1104. ) -> "Text":
  1105. """Create a new component instance.
  1106. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  1107. other UI libraries for common names, like Text and Button.
  1108. Args:
  1109. *children: Child components.
  1110. as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
  1111. as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
  1112. size: Text size: "1" - "9"
  1113. weight: Thickness of text: "light" | "regular" | "medium" | "bold"
  1114. align: Alignment of text in element: "left" | "center" | "right"
  1115. trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
  1116. color_scheme: Overrides the accent color inherited from the Theme.
  1117. high_contrast: Whether to render the text with higher contrast color
  1118. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1119. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1120. content_editable: Indicates whether the element's content is editable.
  1121. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1122. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1123. draggable: Defines whether the element can be dragged.
  1124. enter_key_hint: Hints what media types the media element is able to play.
  1125. hidden: Defines whether the element is hidden.
  1126. input_mode: Defines the type of the element.
  1127. item_prop: Defines the name of the element for metadata purposes.
  1128. lang: Defines the language used in the element.
  1129. role: Defines the role of the element.
  1130. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1131. spell_check: Defines whether the element may be checked for spelling errors.
  1132. tab_index: Defines the position of the current element in the tabbing order.
  1133. title: Defines a tooltip for the element.
  1134. style: The style of the component.
  1135. key: A unique key for the component.
  1136. id: The id for the component.
  1137. class_name: The class name for the component.
  1138. autofocus: Whether the component should take the focus once the page is loaded
  1139. custom_attrs: custom attribute
  1140. **props: Component properties.
  1141. Returns:
  1142. A new component instance.
  1143. """
  1144. ...
  1145. text = TextNamespace()