text.pyi 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170
  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, Literal, Optional, 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: Var[bool] | bool | None = None,
  41. as_: Literal[
  42. "abbr",
  43. "b",
  44. "cite",
  45. "del",
  46. "div",
  47. "em",
  48. "i",
  49. "ins",
  50. "kbd",
  51. "label",
  52. "mark",
  53. "p",
  54. "s",
  55. "samp",
  56. "span",
  57. "sub",
  58. "sup",
  59. "u",
  60. ]
  61. | Var[
  62. Literal[
  63. "abbr",
  64. "b",
  65. "cite",
  66. "del",
  67. "div",
  68. "em",
  69. "i",
  70. "ins",
  71. "kbd",
  72. "label",
  73. "mark",
  74. "p",
  75. "s",
  76. "samp",
  77. "span",
  78. "sub",
  79. "sup",
  80. "u",
  81. ]
  82. ]
  83. | None = None,
  84. size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  85. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  86. | Var[
  87. Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  88. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  89. ]
  90. | None = None,
  91. weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  92. | Literal["bold", "light", "medium", "regular"]
  93. | Var[
  94. Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  95. | Literal["bold", "light", "medium", "regular"]
  96. ]
  97. | None = None,
  98. align: Breakpoints[str, Literal["center", "left", "right"]]
  99. | Literal["center", "left", "right"]
  100. | Var[
  101. Breakpoints[str, Literal["center", "left", "right"]]
  102. | Literal["center", "left", "right"]
  103. ]
  104. | None = None,
  105. trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
  106. | Literal["both", "end", "normal", "start"]
  107. | Var[
  108. Breakpoints[str, Literal["both", "end", "normal", "start"]]
  109. | Literal["both", "end", "normal", "start"]
  110. ]
  111. | None = None,
  112. color_scheme: Literal[
  113. "amber",
  114. "blue",
  115. "bronze",
  116. "brown",
  117. "crimson",
  118. "cyan",
  119. "gold",
  120. "grass",
  121. "gray",
  122. "green",
  123. "indigo",
  124. "iris",
  125. "jade",
  126. "lime",
  127. "mint",
  128. "orange",
  129. "pink",
  130. "plum",
  131. "purple",
  132. "red",
  133. "ruby",
  134. "sky",
  135. "teal",
  136. "tomato",
  137. "violet",
  138. "yellow",
  139. ]
  140. | Var[
  141. Literal[
  142. "amber",
  143. "blue",
  144. "bronze",
  145. "brown",
  146. "crimson",
  147. "cyan",
  148. "gold",
  149. "grass",
  150. "gray",
  151. "green",
  152. "indigo",
  153. "iris",
  154. "jade",
  155. "lime",
  156. "mint",
  157. "orange",
  158. "pink",
  159. "plum",
  160. "purple",
  161. "red",
  162. "ruby",
  163. "sky",
  164. "teal",
  165. "tomato",
  166. "violet",
  167. "yellow",
  168. ]
  169. ]
  170. | None = None,
  171. high_contrast: Var[bool] | bool | None = None,
  172. access_key: Var[str] | str | None = None,
  173. auto_capitalize: Literal[
  174. "characters", "none", "off", "on", "sentences", "words"
  175. ]
  176. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  177. | None = None,
  178. content_editable: Literal["inherit", "plaintext-only", False, True]
  179. | Var[Literal["inherit", "plaintext-only", False, True]]
  180. | None = None,
  181. context_menu: Var[str] | str | None = None,
  182. dir: Var[str] | str | None = None,
  183. draggable: Var[bool] | bool | None = None,
  184. enter_key_hint: Literal[
  185. "done", "enter", "go", "next", "previous", "search", "send"
  186. ]
  187. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  188. | None = None,
  189. hidden: Var[bool] | bool | None = None,
  190. input_mode: Literal[
  191. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  192. ]
  193. | Var[
  194. Literal[
  195. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  196. ]
  197. ]
  198. | None = None,
  199. item_prop: Var[str] | str | None = None,
  200. lang: Var[str] | str | None = None,
  201. role: Literal[
  202. "alert",
  203. "alertdialog",
  204. "application",
  205. "article",
  206. "banner",
  207. "button",
  208. "cell",
  209. "checkbox",
  210. "columnheader",
  211. "combobox",
  212. "complementary",
  213. "contentinfo",
  214. "definition",
  215. "dialog",
  216. "directory",
  217. "document",
  218. "feed",
  219. "figure",
  220. "form",
  221. "grid",
  222. "gridcell",
  223. "group",
  224. "heading",
  225. "img",
  226. "link",
  227. "list",
  228. "listbox",
  229. "listitem",
  230. "log",
  231. "main",
  232. "marquee",
  233. "math",
  234. "menu",
  235. "menubar",
  236. "menuitem",
  237. "menuitemcheckbox",
  238. "menuitemradio",
  239. "navigation",
  240. "none",
  241. "note",
  242. "option",
  243. "presentation",
  244. "progressbar",
  245. "radio",
  246. "radiogroup",
  247. "region",
  248. "row",
  249. "rowgroup",
  250. "rowheader",
  251. "scrollbar",
  252. "search",
  253. "searchbox",
  254. "separator",
  255. "slider",
  256. "spinbutton",
  257. "status",
  258. "switch",
  259. "tab",
  260. "table",
  261. "tablist",
  262. "tabpanel",
  263. "term",
  264. "textbox",
  265. "timer",
  266. "toolbar",
  267. "tooltip",
  268. "tree",
  269. "treegrid",
  270. "treeitem",
  271. ]
  272. | Var[
  273. Literal[
  274. "alert",
  275. "alertdialog",
  276. "application",
  277. "article",
  278. "banner",
  279. "button",
  280. "cell",
  281. "checkbox",
  282. "columnheader",
  283. "combobox",
  284. "complementary",
  285. "contentinfo",
  286. "definition",
  287. "dialog",
  288. "directory",
  289. "document",
  290. "feed",
  291. "figure",
  292. "form",
  293. "grid",
  294. "gridcell",
  295. "group",
  296. "heading",
  297. "img",
  298. "link",
  299. "list",
  300. "listbox",
  301. "listitem",
  302. "log",
  303. "main",
  304. "marquee",
  305. "math",
  306. "menu",
  307. "menubar",
  308. "menuitem",
  309. "menuitemcheckbox",
  310. "menuitemradio",
  311. "navigation",
  312. "none",
  313. "note",
  314. "option",
  315. "presentation",
  316. "progressbar",
  317. "radio",
  318. "radiogroup",
  319. "region",
  320. "row",
  321. "rowgroup",
  322. "rowheader",
  323. "scrollbar",
  324. "search",
  325. "searchbox",
  326. "separator",
  327. "slider",
  328. "spinbutton",
  329. "status",
  330. "switch",
  331. "tab",
  332. "table",
  333. "tablist",
  334. "tabpanel",
  335. "term",
  336. "textbox",
  337. "timer",
  338. "toolbar",
  339. "tooltip",
  340. "tree",
  341. "treegrid",
  342. "treeitem",
  343. ]
  344. ]
  345. | None = None,
  346. slot: Var[str] | str | None = None,
  347. spell_check: Var[bool] | bool | None = None,
  348. tab_index: Var[int] | int | None = None,
  349. title: Var[str] | str | None = None,
  350. style: Style | None = None,
  351. key: Any | None = None,
  352. id: Any | None = None,
  353. class_name: Any | None = None,
  354. autofocus: bool | None = None,
  355. custom_attrs: dict[str, Var | Any] | None = None,
  356. on_blur: Optional[EventType[()]] = None,
  357. on_click: Optional[EventType[()]] = None,
  358. on_context_menu: Optional[EventType[()]] = None,
  359. on_double_click: Optional[EventType[()]] = None,
  360. on_focus: Optional[EventType[()]] = None,
  361. on_mount: Optional[EventType[()]] = None,
  362. on_mouse_down: Optional[EventType[()]] = None,
  363. on_mouse_enter: Optional[EventType[()]] = None,
  364. on_mouse_leave: Optional[EventType[()]] = None,
  365. on_mouse_move: Optional[EventType[()]] = None,
  366. on_mouse_out: Optional[EventType[()]] = None,
  367. on_mouse_over: Optional[EventType[()]] = None,
  368. on_mouse_up: Optional[EventType[()]] = None,
  369. on_scroll: Optional[EventType[()]] = None,
  370. on_unmount: Optional[EventType[()]] = None,
  371. **props,
  372. ) -> "Text":
  373. """Create a new component instance.
  374. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  375. other UI libraries for common names, like Text and Button.
  376. Args:
  377. *children: Child components.
  378. as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
  379. as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
  380. size: Text size: "1" - "9"
  381. weight: Thickness of text: "light" | "regular" | "medium" | "bold"
  382. align: Alignment of text in element: "left" | "center" | "right"
  383. trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
  384. color_scheme: Overrides the accent color inherited from the Theme.
  385. high_contrast: Whether to render the text with higher contrast color
  386. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  387. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  388. content_editable: Indicates whether the element's content is editable.
  389. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  390. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  391. draggable: Defines whether the element can be dragged.
  392. enter_key_hint: Hints what media types the media element is able to play.
  393. hidden: Defines whether the element is hidden.
  394. input_mode: Defines the type of the element.
  395. item_prop: Defines the name of the element for metadata purposes.
  396. lang: Defines the language used in the element.
  397. role: Defines the role of the element.
  398. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  399. spell_check: Defines whether the element may be checked for spelling errors.
  400. tab_index: Defines the position of the current element in the tabbing order.
  401. title: Defines a tooltip for the element.
  402. style: The style of the component.
  403. key: A unique key for the component.
  404. id: The id for the component.
  405. class_name: The class name for the component.
  406. autofocus: Whether the component should take the focus once the page is loaded
  407. custom_attrs: custom attribute
  408. **props: Component properties.
  409. Returns:
  410. A new component instance.
  411. """
  412. ...
  413. class Span(Text):
  414. @overload
  415. @classmethod
  416. def create( # type: ignore
  417. cls,
  418. *children,
  419. as_: Literal[
  420. "abbr",
  421. "b",
  422. "cite",
  423. "del",
  424. "div",
  425. "em",
  426. "i",
  427. "ins",
  428. "kbd",
  429. "label",
  430. "mark",
  431. "p",
  432. "s",
  433. "samp",
  434. "span",
  435. "sub",
  436. "sup",
  437. "u",
  438. ]
  439. | Var[
  440. Literal[
  441. "abbr",
  442. "b",
  443. "cite",
  444. "del",
  445. "div",
  446. "em",
  447. "i",
  448. "ins",
  449. "kbd",
  450. "label",
  451. "mark",
  452. "p",
  453. "s",
  454. "samp",
  455. "span",
  456. "sub",
  457. "sup",
  458. "u",
  459. ]
  460. ]
  461. | None = None,
  462. as_child: Var[bool] | bool | None = None,
  463. size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  464. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  465. | Var[
  466. Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  467. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  468. ]
  469. | None = None,
  470. weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  471. | Literal["bold", "light", "medium", "regular"]
  472. | Var[
  473. Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  474. | Literal["bold", "light", "medium", "regular"]
  475. ]
  476. | None = None,
  477. align: Breakpoints[str, Literal["center", "left", "right"]]
  478. | Literal["center", "left", "right"]
  479. | Var[
  480. Breakpoints[str, Literal["center", "left", "right"]]
  481. | Literal["center", "left", "right"]
  482. ]
  483. | None = None,
  484. trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
  485. | Literal["both", "end", "normal", "start"]
  486. | Var[
  487. Breakpoints[str, Literal["both", "end", "normal", "start"]]
  488. | Literal["both", "end", "normal", "start"]
  489. ]
  490. | None = None,
  491. color_scheme: Literal[
  492. "amber",
  493. "blue",
  494. "bronze",
  495. "brown",
  496. "crimson",
  497. "cyan",
  498. "gold",
  499. "grass",
  500. "gray",
  501. "green",
  502. "indigo",
  503. "iris",
  504. "jade",
  505. "lime",
  506. "mint",
  507. "orange",
  508. "pink",
  509. "plum",
  510. "purple",
  511. "red",
  512. "ruby",
  513. "sky",
  514. "teal",
  515. "tomato",
  516. "violet",
  517. "yellow",
  518. ]
  519. | Var[
  520. Literal[
  521. "amber",
  522. "blue",
  523. "bronze",
  524. "brown",
  525. "crimson",
  526. "cyan",
  527. "gold",
  528. "grass",
  529. "gray",
  530. "green",
  531. "indigo",
  532. "iris",
  533. "jade",
  534. "lime",
  535. "mint",
  536. "orange",
  537. "pink",
  538. "plum",
  539. "purple",
  540. "red",
  541. "ruby",
  542. "sky",
  543. "teal",
  544. "tomato",
  545. "violet",
  546. "yellow",
  547. ]
  548. ]
  549. | None = None,
  550. high_contrast: Var[bool] | bool | None = None,
  551. access_key: Var[str] | str | None = None,
  552. auto_capitalize: Literal[
  553. "characters", "none", "off", "on", "sentences", "words"
  554. ]
  555. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  556. | None = None,
  557. content_editable: Literal["inherit", "plaintext-only", False, True]
  558. | Var[Literal["inherit", "plaintext-only", False, True]]
  559. | None = None,
  560. context_menu: Var[str] | str | None = None,
  561. dir: Var[str] | str | None = None,
  562. draggable: Var[bool] | bool | None = None,
  563. enter_key_hint: Literal[
  564. "done", "enter", "go", "next", "previous", "search", "send"
  565. ]
  566. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  567. | None = None,
  568. hidden: Var[bool] | bool | None = None,
  569. input_mode: Literal[
  570. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  571. ]
  572. | Var[
  573. Literal[
  574. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  575. ]
  576. ]
  577. | None = None,
  578. item_prop: Var[str] | str | None = None,
  579. lang: Var[str] | str | None = None,
  580. role: Literal[
  581. "alert",
  582. "alertdialog",
  583. "application",
  584. "article",
  585. "banner",
  586. "button",
  587. "cell",
  588. "checkbox",
  589. "columnheader",
  590. "combobox",
  591. "complementary",
  592. "contentinfo",
  593. "definition",
  594. "dialog",
  595. "directory",
  596. "document",
  597. "feed",
  598. "figure",
  599. "form",
  600. "grid",
  601. "gridcell",
  602. "group",
  603. "heading",
  604. "img",
  605. "link",
  606. "list",
  607. "listbox",
  608. "listitem",
  609. "log",
  610. "main",
  611. "marquee",
  612. "math",
  613. "menu",
  614. "menubar",
  615. "menuitem",
  616. "menuitemcheckbox",
  617. "menuitemradio",
  618. "navigation",
  619. "none",
  620. "note",
  621. "option",
  622. "presentation",
  623. "progressbar",
  624. "radio",
  625. "radiogroup",
  626. "region",
  627. "row",
  628. "rowgroup",
  629. "rowheader",
  630. "scrollbar",
  631. "search",
  632. "searchbox",
  633. "separator",
  634. "slider",
  635. "spinbutton",
  636. "status",
  637. "switch",
  638. "tab",
  639. "table",
  640. "tablist",
  641. "tabpanel",
  642. "term",
  643. "textbox",
  644. "timer",
  645. "toolbar",
  646. "tooltip",
  647. "tree",
  648. "treegrid",
  649. "treeitem",
  650. ]
  651. | Var[
  652. Literal[
  653. "alert",
  654. "alertdialog",
  655. "application",
  656. "article",
  657. "banner",
  658. "button",
  659. "cell",
  660. "checkbox",
  661. "columnheader",
  662. "combobox",
  663. "complementary",
  664. "contentinfo",
  665. "definition",
  666. "dialog",
  667. "directory",
  668. "document",
  669. "feed",
  670. "figure",
  671. "form",
  672. "grid",
  673. "gridcell",
  674. "group",
  675. "heading",
  676. "img",
  677. "link",
  678. "list",
  679. "listbox",
  680. "listitem",
  681. "log",
  682. "main",
  683. "marquee",
  684. "math",
  685. "menu",
  686. "menubar",
  687. "menuitem",
  688. "menuitemcheckbox",
  689. "menuitemradio",
  690. "navigation",
  691. "none",
  692. "note",
  693. "option",
  694. "presentation",
  695. "progressbar",
  696. "radio",
  697. "radiogroup",
  698. "region",
  699. "row",
  700. "rowgroup",
  701. "rowheader",
  702. "scrollbar",
  703. "search",
  704. "searchbox",
  705. "separator",
  706. "slider",
  707. "spinbutton",
  708. "status",
  709. "switch",
  710. "tab",
  711. "table",
  712. "tablist",
  713. "tabpanel",
  714. "term",
  715. "textbox",
  716. "timer",
  717. "toolbar",
  718. "tooltip",
  719. "tree",
  720. "treegrid",
  721. "treeitem",
  722. ]
  723. ]
  724. | None = None,
  725. slot: Var[str] | str | None = None,
  726. spell_check: Var[bool] | bool | None = None,
  727. tab_index: Var[int] | int | None = None,
  728. title: Var[str] | str | None = None,
  729. style: Style | None = None,
  730. key: Any | None = None,
  731. id: Any | None = None,
  732. class_name: Any | None = None,
  733. autofocus: bool | None = None,
  734. custom_attrs: dict[str, Var | Any] | None = None,
  735. on_blur: Optional[EventType[()]] = None,
  736. on_click: Optional[EventType[()]] = None,
  737. on_context_menu: Optional[EventType[()]] = None,
  738. on_double_click: Optional[EventType[()]] = None,
  739. on_focus: Optional[EventType[()]] = None,
  740. on_mount: Optional[EventType[()]] = None,
  741. on_mouse_down: Optional[EventType[()]] = None,
  742. on_mouse_enter: Optional[EventType[()]] = None,
  743. on_mouse_leave: Optional[EventType[()]] = None,
  744. on_mouse_move: Optional[EventType[()]] = None,
  745. on_mouse_out: Optional[EventType[()]] = None,
  746. on_mouse_over: Optional[EventType[()]] = None,
  747. on_mouse_up: Optional[EventType[()]] = None,
  748. on_scroll: Optional[EventType[()]] = None,
  749. on_unmount: Optional[EventType[()]] = None,
  750. **props,
  751. ) -> "Span":
  752. """Create a new component instance.
  753. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  754. other UI libraries for common names, like Text and Button.
  755. Args:
  756. *children: Child components.
  757. as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
  758. as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
  759. size: Text size: "1" - "9"
  760. weight: Thickness of text: "light" | "regular" | "medium" | "bold"
  761. align: Alignment of text in element: "left" | "center" | "right"
  762. trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
  763. color_scheme: Overrides the accent color inherited from the Theme.
  764. high_contrast: Whether to render the text with higher contrast color
  765. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  766. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  767. content_editable: Indicates whether the element's content is editable.
  768. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  769. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  770. draggable: Defines whether the element can be dragged.
  771. enter_key_hint: Hints what media types the media element is able to play.
  772. hidden: Defines whether the element is hidden.
  773. input_mode: Defines the type of the element.
  774. item_prop: Defines the name of the element for metadata purposes.
  775. lang: Defines the language used in the element.
  776. role: Defines the role of the element.
  777. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  778. spell_check: Defines whether the element may be checked for spelling errors.
  779. tab_index: Defines the position of the current element in the tabbing order.
  780. title: Defines a tooltip for the element.
  781. style: The style of the component.
  782. key: A unique key for the component.
  783. id: The id for the component.
  784. class_name: The class name for the component.
  785. autofocus: Whether the component should take the focus once the page is loaded
  786. custom_attrs: custom attribute
  787. **props: Component properties.
  788. Returns:
  789. A new component instance.
  790. """
  791. ...
  792. class Em(elements.Em, RadixThemesComponent):
  793. @overload
  794. @classmethod
  795. def create( # type: ignore
  796. cls,
  797. *children,
  798. access_key: Var[str] | str | None = None,
  799. auto_capitalize: Literal[
  800. "characters", "none", "off", "on", "sentences", "words"
  801. ]
  802. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  803. | None = None,
  804. content_editable: Literal["inherit", "plaintext-only", False, True]
  805. | Var[Literal["inherit", "plaintext-only", False, True]]
  806. | None = None,
  807. context_menu: Var[str] | str | None = None,
  808. dir: Var[str] | str | None = None,
  809. draggable: Var[bool] | bool | None = None,
  810. enter_key_hint: Literal[
  811. "done", "enter", "go", "next", "previous", "search", "send"
  812. ]
  813. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  814. | None = None,
  815. hidden: Var[bool] | bool | None = None,
  816. input_mode: Literal[
  817. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  818. ]
  819. | Var[
  820. Literal[
  821. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  822. ]
  823. ]
  824. | None = None,
  825. item_prop: Var[str] | str | None = None,
  826. lang: Var[str] | str | None = None,
  827. role: Literal[
  828. "alert",
  829. "alertdialog",
  830. "application",
  831. "article",
  832. "banner",
  833. "button",
  834. "cell",
  835. "checkbox",
  836. "columnheader",
  837. "combobox",
  838. "complementary",
  839. "contentinfo",
  840. "definition",
  841. "dialog",
  842. "directory",
  843. "document",
  844. "feed",
  845. "figure",
  846. "form",
  847. "grid",
  848. "gridcell",
  849. "group",
  850. "heading",
  851. "img",
  852. "link",
  853. "list",
  854. "listbox",
  855. "listitem",
  856. "log",
  857. "main",
  858. "marquee",
  859. "math",
  860. "menu",
  861. "menubar",
  862. "menuitem",
  863. "menuitemcheckbox",
  864. "menuitemradio",
  865. "navigation",
  866. "none",
  867. "note",
  868. "option",
  869. "presentation",
  870. "progressbar",
  871. "radio",
  872. "radiogroup",
  873. "region",
  874. "row",
  875. "rowgroup",
  876. "rowheader",
  877. "scrollbar",
  878. "search",
  879. "searchbox",
  880. "separator",
  881. "slider",
  882. "spinbutton",
  883. "status",
  884. "switch",
  885. "tab",
  886. "table",
  887. "tablist",
  888. "tabpanel",
  889. "term",
  890. "textbox",
  891. "timer",
  892. "toolbar",
  893. "tooltip",
  894. "tree",
  895. "treegrid",
  896. "treeitem",
  897. ]
  898. | Var[
  899. Literal[
  900. "alert",
  901. "alertdialog",
  902. "application",
  903. "article",
  904. "banner",
  905. "button",
  906. "cell",
  907. "checkbox",
  908. "columnheader",
  909. "combobox",
  910. "complementary",
  911. "contentinfo",
  912. "definition",
  913. "dialog",
  914. "directory",
  915. "document",
  916. "feed",
  917. "figure",
  918. "form",
  919. "grid",
  920. "gridcell",
  921. "group",
  922. "heading",
  923. "img",
  924. "link",
  925. "list",
  926. "listbox",
  927. "listitem",
  928. "log",
  929. "main",
  930. "marquee",
  931. "math",
  932. "menu",
  933. "menubar",
  934. "menuitem",
  935. "menuitemcheckbox",
  936. "menuitemradio",
  937. "navigation",
  938. "none",
  939. "note",
  940. "option",
  941. "presentation",
  942. "progressbar",
  943. "radio",
  944. "radiogroup",
  945. "region",
  946. "row",
  947. "rowgroup",
  948. "rowheader",
  949. "scrollbar",
  950. "search",
  951. "searchbox",
  952. "separator",
  953. "slider",
  954. "spinbutton",
  955. "status",
  956. "switch",
  957. "tab",
  958. "table",
  959. "tablist",
  960. "tabpanel",
  961. "term",
  962. "textbox",
  963. "timer",
  964. "toolbar",
  965. "tooltip",
  966. "tree",
  967. "treegrid",
  968. "treeitem",
  969. ]
  970. ]
  971. | None = None,
  972. slot: Var[str] | str | None = None,
  973. spell_check: Var[bool] | bool | None = None,
  974. tab_index: Var[int] | int | None = None,
  975. title: Var[str] | str | None = None,
  976. style: Style | None = None,
  977. key: Any | None = None,
  978. id: Any | None = None,
  979. class_name: Any | None = None,
  980. autofocus: bool | None = None,
  981. custom_attrs: dict[str, Var | Any] | None = None,
  982. on_blur: Optional[EventType[()]] = None,
  983. on_click: Optional[EventType[()]] = None,
  984. on_context_menu: Optional[EventType[()]] = None,
  985. on_double_click: Optional[EventType[()]] = None,
  986. on_focus: Optional[EventType[()]] = None,
  987. on_mount: Optional[EventType[()]] = None,
  988. on_mouse_down: Optional[EventType[()]] = None,
  989. on_mouse_enter: Optional[EventType[()]] = None,
  990. on_mouse_leave: Optional[EventType[()]] = None,
  991. on_mouse_move: Optional[EventType[()]] = None,
  992. on_mouse_out: Optional[EventType[()]] = None,
  993. on_mouse_over: Optional[EventType[()]] = None,
  994. on_mouse_up: Optional[EventType[()]] = None,
  995. on_scroll: Optional[EventType[()]] = None,
  996. on_unmount: Optional[EventType[()]] = None,
  997. **props,
  998. ) -> "Em":
  999. """Create a new component instance.
  1000. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  1001. other UI libraries for common names, like Text and Button.
  1002. Args:
  1003. *children: Child components.
  1004. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1005. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1006. content_editable: Indicates whether the element's content is editable.
  1007. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1008. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1009. draggable: Defines whether the element can be dragged.
  1010. enter_key_hint: Hints what media types the media element is able to play.
  1011. hidden: Defines whether the element is hidden.
  1012. input_mode: Defines the type of the element.
  1013. item_prop: Defines the name of the element for metadata purposes.
  1014. lang: Defines the language used in the element.
  1015. role: Defines the role of the element.
  1016. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1017. spell_check: Defines whether the element may be checked for spelling errors.
  1018. tab_index: Defines the position of the current element in the tabbing order.
  1019. title: Defines a tooltip for the element.
  1020. style: The style of the component.
  1021. key: A unique key for the component.
  1022. id: The id for the component.
  1023. class_name: The class name for the component.
  1024. autofocus: Whether the component should take the focus once the page is loaded
  1025. custom_attrs: custom attribute
  1026. **props: Component properties.
  1027. Returns:
  1028. A new component instance.
  1029. """
  1030. ...
  1031. class Kbd(elements.Kbd, RadixThemesComponent):
  1032. @overload
  1033. @classmethod
  1034. def create( # type: ignore
  1035. cls,
  1036. *children,
  1037. size: Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  1038. | Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  1039. | None = None,
  1040. access_key: Var[str] | str | None = None,
  1041. auto_capitalize: Literal[
  1042. "characters", "none", "off", "on", "sentences", "words"
  1043. ]
  1044. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  1045. | None = None,
  1046. content_editable: Literal["inherit", "plaintext-only", False, True]
  1047. | Var[Literal["inherit", "plaintext-only", False, True]]
  1048. | None = None,
  1049. context_menu: Var[str] | str | None = None,
  1050. dir: Var[str] | str | None = None,
  1051. draggable: Var[bool] | bool | None = None,
  1052. enter_key_hint: Literal[
  1053. "done", "enter", "go", "next", "previous", "search", "send"
  1054. ]
  1055. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  1056. | None = None,
  1057. hidden: Var[bool] | bool | None = None,
  1058. input_mode: Literal[
  1059. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1060. ]
  1061. | Var[
  1062. Literal[
  1063. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1064. ]
  1065. ]
  1066. | None = None,
  1067. item_prop: Var[str] | str | None = None,
  1068. lang: Var[str] | str | None = None,
  1069. role: Literal[
  1070. "alert",
  1071. "alertdialog",
  1072. "application",
  1073. "article",
  1074. "banner",
  1075. "button",
  1076. "cell",
  1077. "checkbox",
  1078. "columnheader",
  1079. "combobox",
  1080. "complementary",
  1081. "contentinfo",
  1082. "definition",
  1083. "dialog",
  1084. "directory",
  1085. "document",
  1086. "feed",
  1087. "figure",
  1088. "form",
  1089. "grid",
  1090. "gridcell",
  1091. "group",
  1092. "heading",
  1093. "img",
  1094. "link",
  1095. "list",
  1096. "listbox",
  1097. "listitem",
  1098. "log",
  1099. "main",
  1100. "marquee",
  1101. "math",
  1102. "menu",
  1103. "menubar",
  1104. "menuitem",
  1105. "menuitemcheckbox",
  1106. "menuitemradio",
  1107. "navigation",
  1108. "none",
  1109. "note",
  1110. "option",
  1111. "presentation",
  1112. "progressbar",
  1113. "radio",
  1114. "radiogroup",
  1115. "region",
  1116. "row",
  1117. "rowgroup",
  1118. "rowheader",
  1119. "scrollbar",
  1120. "search",
  1121. "searchbox",
  1122. "separator",
  1123. "slider",
  1124. "spinbutton",
  1125. "status",
  1126. "switch",
  1127. "tab",
  1128. "table",
  1129. "tablist",
  1130. "tabpanel",
  1131. "term",
  1132. "textbox",
  1133. "timer",
  1134. "toolbar",
  1135. "tooltip",
  1136. "tree",
  1137. "treegrid",
  1138. "treeitem",
  1139. ]
  1140. | Var[
  1141. Literal[
  1142. "alert",
  1143. "alertdialog",
  1144. "application",
  1145. "article",
  1146. "banner",
  1147. "button",
  1148. "cell",
  1149. "checkbox",
  1150. "columnheader",
  1151. "combobox",
  1152. "complementary",
  1153. "contentinfo",
  1154. "definition",
  1155. "dialog",
  1156. "directory",
  1157. "document",
  1158. "feed",
  1159. "figure",
  1160. "form",
  1161. "grid",
  1162. "gridcell",
  1163. "group",
  1164. "heading",
  1165. "img",
  1166. "link",
  1167. "list",
  1168. "listbox",
  1169. "listitem",
  1170. "log",
  1171. "main",
  1172. "marquee",
  1173. "math",
  1174. "menu",
  1175. "menubar",
  1176. "menuitem",
  1177. "menuitemcheckbox",
  1178. "menuitemradio",
  1179. "navigation",
  1180. "none",
  1181. "note",
  1182. "option",
  1183. "presentation",
  1184. "progressbar",
  1185. "radio",
  1186. "radiogroup",
  1187. "region",
  1188. "row",
  1189. "rowgroup",
  1190. "rowheader",
  1191. "scrollbar",
  1192. "search",
  1193. "searchbox",
  1194. "separator",
  1195. "slider",
  1196. "spinbutton",
  1197. "status",
  1198. "switch",
  1199. "tab",
  1200. "table",
  1201. "tablist",
  1202. "tabpanel",
  1203. "term",
  1204. "textbox",
  1205. "timer",
  1206. "toolbar",
  1207. "tooltip",
  1208. "tree",
  1209. "treegrid",
  1210. "treeitem",
  1211. ]
  1212. ]
  1213. | None = None,
  1214. slot: Var[str] | str | None = None,
  1215. spell_check: Var[bool] | bool | None = None,
  1216. tab_index: Var[int] | int | None = None,
  1217. title: Var[str] | str | None = None,
  1218. style: Style | None = None,
  1219. key: Any | None = None,
  1220. id: Any | None = None,
  1221. class_name: Any | None = None,
  1222. autofocus: bool | None = None,
  1223. custom_attrs: dict[str, Var | Any] | None = None,
  1224. on_blur: Optional[EventType[()]] = None,
  1225. on_click: Optional[EventType[()]] = None,
  1226. on_context_menu: Optional[EventType[()]] = None,
  1227. on_double_click: Optional[EventType[()]] = None,
  1228. on_focus: Optional[EventType[()]] = None,
  1229. on_mount: Optional[EventType[()]] = None,
  1230. on_mouse_down: Optional[EventType[()]] = None,
  1231. on_mouse_enter: Optional[EventType[()]] = None,
  1232. on_mouse_leave: Optional[EventType[()]] = None,
  1233. on_mouse_move: Optional[EventType[()]] = None,
  1234. on_mouse_out: Optional[EventType[()]] = None,
  1235. on_mouse_over: Optional[EventType[()]] = None,
  1236. on_mouse_up: Optional[EventType[()]] = None,
  1237. on_scroll: Optional[EventType[()]] = None,
  1238. on_unmount: Optional[EventType[()]] = None,
  1239. **props,
  1240. ) -> "Kbd":
  1241. """Create a new component instance.
  1242. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  1243. other UI libraries for common names, like Text and Button.
  1244. Args:
  1245. *children: Child components.
  1246. size: Text size: "1" - "9"
  1247. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1248. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1249. content_editable: Indicates whether the element's content is editable.
  1250. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1251. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1252. draggable: Defines whether the element can be dragged.
  1253. enter_key_hint: Hints what media types the media element is able to play.
  1254. hidden: Defines whether the element is hidden.
  1255. input_mode: Defines the type of the element.
  1256. item_prop: Defines the name of the element for metadata purposes.
  1257. lang: Defines the language used in the element.
  1258. role: Defines the role of the element.
  1259. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1260. spell_check: Defines whether the element may be checked for spelling errors.
  1261. tab_index: Defines the position of the current element in the tabbing order.
  1262. title: Defines a tooltip for the element.
  1263. style: The style of the component.
  1264. key: A unique key for the component.
  1265. id: The id for the component.
  1266. class_name: The class name for the component.
  1267. autofocus: Whether the component should take the focus once the page is loaded
  1268. custom_attrs: custom attribute
  1269. **props: Component properties.
  1270. Returns:
  1271. A new component instance.
  1272. """
  1273. ...
  1274. class Quote(elements.Q, RadixThemesComponent):
  1275. @overload
  1276. @classmethod
  1277. def create( # type: ignore
  1278. cls,
  1279. *children,
  1280. cite: Var[str] | str | None = None,
  1281. access_key: Var[str] | str | None = None,
  1282. auto_capitalize: Literal[
  1283. "characters", "none", "off", "on", "sentences", "words"
  1284. ]
  1285. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  1286. | None = None,
  1287. content_editable: Literal["inherit", "plaintext-only", False, True]
  1288. | Var[Literal["inherit", "plaintext-only", False, True]]
  1289. | None = None,
  1290. context_menu: Var[str] | str | None = None,
  1291. dir: Var[str] | str | None = None,
  1292. draggable: Var[bool] | bool | None = None,
  1293. enter_key_hint: Literal[
  1294. "done", "enter", "go", "next", "previous", "search", "send"
  1295. ]
  1296. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  1297. | None = None,
  1298. hidden: Var[bool] | bool | None = None,
  1299. input_mode: Literal[
  1300. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1301. ]
  1302. | Var[
  1303. Literal[
  1304. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1305. ]
  1306. ]
  1307. | None = None,
  1308. item_prop: Var[str] | str | None = None,
  1309. lang: Var[str] | str | None = None,
  1310. role: Literal[
  1311. "alert",
  1312. "alertdialog",
  1313. "application",
  1314. "article",
  1315. "banner",
  1316. "button",
  1317. "cell",
  1318. "checkbox",
  1319. "columnheader",
  1320. "combobox",
  1321. "complementary",
  1322. "contentinfo",
  1323. "definition",
  1324. "dialog",
  1325. "directory",
  1326. "document",
  1327. "feed",
  1328. "figure",
  1329. "form",
  1330. "grid",
  1331. "gridcell",
  1332. "group",
  1333. "heading",
  1334. "img",
  1335. "link",
  1336. "list",
  1337. "listbox",
  1338. "listitem",
  1339. "log",
  1340. "main",
  1341. "marquee",
  1342. "math",
  1343. "menu",
  1344. "menubar",
  1345. "menuitem",
  1346. "menuitemcheckbox",
  1347. "menuitemradio",
  1348. "navigation",
  1349. "none",
  1350. "note",
  1351. "option",
  1352. "presentation",
  1353. "progressbar",
  1354. "radio",
  1355. "radiogroup",
  1356. "region",
  1357. "row",
  1358. "rowgroup",
  1359. "rowheader",
  1360. "scrollbar",
  1361. "search",
  1362. "searchbox",
  1363. "separator",
  1364. "slider",
  1365. "spinbutton",
  1366. "status",
  1367. "switch",
  1368. "tab",
  1369. "table",
  1370. "tablist",
  1371. "tabpanel",
  1372. "term",
  1373. "textbox",
  1374. "timer",
  1375. "toolbar",
  1376. "tooltip",
  1377. "tree",
  1378. "treegrid",
  1379. "treeitem",
  1380. ]
  1381. | Var[
  1382. Literal[
  1383. "alert",
  1384. "alertdialog",
  1385. "application",
  1386. "article",
  1387. "banner",
  1388. "button",
  1389. "cell",
  1390. "checkbox",
  1391. "columnheader",
  1392. "combobox",
  1393. "complementary",
  1394. "contentinfo",
  1395. "definition",
  1396. "dialog",
  1397. "directory",
  1398. "document",
  1399. "feed",
  1400. "figure",
  1401. "form",
  1402. "grid",
  1403. "gridcell",
  1404. "group",
  1405. "heading",
  1406. "img",
  1407. "link",
  1408. "list",
  1409. "listbox",
  1410. "listitem",
  1411. "log",
  1412. "main",
  1413. "marquee",
  1414. "math",
  1415. "menu",
  1416. "menubar",
  1417. "menuitem",
  1418. "menuitemcheckbox",
  1419. "menuitemradio",
  1420. "navigation",
  1421. "none",
  1422. "note",
  1423. "option",
  1424. "presentation",
  1425. "progressbar",
  1426. "radio",
  1427. "radiogroup",
  1428. "region",
  1429. "row",
  1430. "rowgroup",
  1431. "rowheader",
  1432. "scrollbar",
  1433. "search",
  1434. "searchbox",
  1435. "separator",
  1436. "slider",
  1437. "spinbutton",
  1438. "status",
  1439. "switch",
  1440. "tab",
  1441. "table",
  1442. "tablist",
  1443. "tabpanel",
  1444. "term",
  1445. "textbox",
  1446. "timer",
  1447. "toolbar",
  1448. "tooltip",
  1449. "tree",
  1450. "treegrid",
  1451. "treeitem",
  1452. ]
  1453. ]
  1454. | None = None,
  1455. slot: Var[str] | str | None = None,
  1456. spell_check: Var[bool] | bool | None = None,
  1457. tab_index: Var[int] | int | None = None,
  1458. title: Var[str] | str | None = None,
  1459. style: Style | None = None,
  1460. key: Any | None = None,
  1461. id: Any | None = None,
  1462. class_name: Any | None = None,
  1463. autofocus: bool | None = None,
  1464. custom_attrs: dict[str, Var | Any] | None = None,
  1465. on_blur: Optional[EventType[()]] = None,
  1466. on_click: Optional[EventType[()]] = None,
  1467. on_context_menu: Optional[EventType[()]] = None,
  1468. on_double_click: Optional[EventType[()]] = None,
  1469. on_focus: Optional[EventType[()]] = None,
  1470. on_mount: Optional[EventType[()]] = None,
  1471. on_mouse_down: Optional[EventType[()]] = None,
  1472. on_mouse_enter: Optional[EventType[()]] = None,
  1473. on_mouse_leave: Optional[EventType[()]] = None,
  1474. on_mouse_move: Optional[EventType[()]] = None,
  1475. on_mouse_out: Optional[EventType[()]] = None,
  1476. on_mouse_over: Optional[EventType[()]] = None,
  1477. on_mouse_up: Optional[EventType[()]] = None,
  1478. on_scroll: Optional[EventType[()]] = None,
  1479. on_unmount: Optional[EventType[()]] = None,
  1480. **props,
  1481. ) -> "Quote":
  1482. """Create a new component instance.
  1483. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  1484. other UI libraries for common names, like Text and Button.
  1485. Args:
  1486. *children: Child components.
  1487. cite: Specifies the source URL of the quote.
  1488. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1489. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1490. content_editable: Indicates whether the element's content is editable.
  1491. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1492. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1493. draggable: Defines whether the element can be dragged.
  1494. enter_key_hint: Hints what media types the media element is able to play.
  1495. hidden: Defines whether the element is hidden.
  1496. input_mode: Defines the type of the element.
  1497. item_prop: Defines the name of the element for metadata purposes.
  1498. lang: Defines the language used in the element.
  1499. role: Defines the role of the element.
  1500. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1501. spell_check: Defines whether the element may be checked for spelling errors.
  1502. tab_index: Defines the position of the current element in the tabbing order.
  1503. title: Defines a tooltip for the element.
  1504. style: The style of the component.
  1505. key: A unique key for the component.
  1506. id: The id for the component.
  1507. class_name: The class name for the component.
  1508. autofocus: Whether the component should take the focus once the page is loaded
  1509. custom_attrs: custom attribute
  1510. **props: Component properties.
  1511. Returns:
  1512. A new component instance.
  1513. """
  1514. ...
  1515. class Strong(elements.Strong, RadixThemesComponent):
  1516. @overload
  1517. @classmethod
  1518. def create( # type: ignore
  1519. cls,
  1520. *children,
  1521. access_key: Var[str] | str | None = None,
  1522. auto_capitalize: Literal[
  1523. "characters", "none", "off", "on", "sentences", "words"
  1524. ]
  1525. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  1526. | None = None,
  1527. content_editable: Literal["inherit", "plaintext-only", False, True]
  1528. | Var[Literal["inherit", "plaintext-only", False, True]]
  1529. | None = None,
  1530. context_menu: Var[str] | str | None = None,
  1531. dir: Var[str] | str | None = None,
  1532. draggable: Var[bool] | bool | None = None,
  1533. enter_key_hint: Literal[
  1534. "done", "enter", "go", "next", "previous", "search", "send"
  1535. ]
  1536. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  1537. | None = None,
  1538. hidden: Var[bool] | bool | None = None,
  1539. input_mode: Literal[
  1540. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1541. ]
  1542. | Var[
  1543. Literal[
  1544. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1545. ]
  1546. ]
  1547. | None = None,
  1548. item_prop: Var[str] | str | None = None,
  1549. lang: Var[str] | str | None = None,
  1550. role: Literal[
  1551. "alert",
  1552. "alertdialog",
  1553. "application",
  1554. "article",
  1555. "banner",
  1556. "button",
  1557. "cell",
  1558. "checkbox",
  1559. "columnheader",
  1560. "combobox",
  1561. "complementary",
  1562. "contentinfo",
  1563. "definition",
  1564. "dialog",
  1565. "directory",
  1566. "document",
  1567. "feed",
  1568. "figure",
  1569. "form",
  1570. "grid",
  1571. "gridcell",
  1572. "group",
  1573. "heading",
  1574. "img",
  1575. "link",
  1576. "list",
  1577. "listbox",
  1578. "listitem",
  1579. "log",
  1580. "main",
  1581. "marquee",
  1582. "math",
  1583. "menu",
  1584. "menubar",
  1585. "menuitem",
  1586. "menuitemcheckbox",
  1587. "menuitemradio",
  1588. "navigation",
  1589. "none",
  1590. "note",
  1591. "option",
  1592. "presentation",
  1593. "progressbar",
  1594. "radio",
  1595. "radiogroup",
  1596. "region",
  1597. "row",
  1598. "rowgroup",
  1599. "rowheader",
  1600. "scrollbar",
  1601. "search",
  1602. "searchbox",
  1603. "separator",
  1604. "slider",
  1605. "spinbutton",
  1606. "status",
  1607. "switch",
  1608. "tab",
  1609. "table",
  1610. "tablist",
  1611. "tabpanel",
  1612. "term",
  1613. "textbox",
  1614. "timer",
  1615. "toolbar",
  1616. "tooltip",
  1617. "tree",
  1618. "treegrid",
  1619. "treeitem",
  1620. ]
  1621. | Var[
  1622. Literal[
  1623. "alert",
  1624. "alertdialog",
  1625. "application",
  1626. "article",
  1627. "banner",
  1628. "button",
  1629. "cell",
  1630. "checkbox",
  1631. "columnheader",
  1632. "combobox",
  1633. "complementary",
  1634. "contentinfo",
  1635. "definition",
  1636. "dialog",
  1637. "directory",
  1638. "document",
  1639. "feed",
  1640. "figure",
  1641. "form",
  1642. "grid",
  1643. "gridcell",
  1644. "group",
  1645. "heading",
  1646. "img",
  1647. "link",
  1648. "list",
  1649. "listbox",
  1650. "listitem",
  1651. "log",
  1652. "main",
  1653. "marquee",
  1654. "math",
  1655. "menu",
  1656. "menubar",
  1657. "menuitem",
  1658. "menuitemcheckbox",
  1659. "menuitemradio",
  1660. "navigation",
  1661. "none",
  1662. "note",
  1663. "option",
  1664. "presentation",
  1665. "progressbar",
  1666. "radio",
  1667. "radiogroup",
  1668. "region",
  1669. "row",
  1670. "rowgroup",
  1671. "rowheader",
  1672. "scrollbar",
  1673. "search",
  1674. "searchbox",
  1675. "separator",
  1676. "slider",
  1677. "spinbutton",
  1678. "status",
  1679. "switch",
  1680. "tab",
  1681. "table",
  1682. "tablist",
  1683. "tabpanel",
  1684. "term",
  1685. "textbox",
  1686. "timer",
  1687. "toolbar",
  1688. "tooltip",
  1689. "tree",
  1690. "treegrid",
  1691. "treeitem",
  1692. ]
  1693. ]
  1694. | None = None,
  1695. slot: Var[str] | str | None = None,
  1696. spell_check: Var[bool] | bool | None = None,
  1697. tab_index: Var[int] | int | None = None,
  1698. title: Var[str] | str | None = None,
  1699. style: Style | None = None,
  1700. key: Any | None = None,
  1701. id: Any | None = None,
  1702. class_name: Any | None = None,
  1703. autofocus: bool | None = None,
  1704. custom_attrs: dict[str, Var | Any] | None = None,
  1705. on_blur: Optional[EventType[()]] = None,
  1706. on_click: Optional[EventType[()]] = None,
  1707. on_context_menu: Optional[EventType[()]] = None,
  1708. on_double_click: Optional[EventType[()]] = None,
  1709. on_focus: Optional[EventType[()]] = None,
  1710. on_mount: Optional[EventType[()]] = None,
  1711. on_mouse_down: Optional[EventType[()]] = None,
  1712. on_mouse_enter: Optional[EventType[()]] = None,
  1713. on_mouse_leave: Optional[EventType[()]] = None,
  1714. on_mouse_move: Optional[EventType[()]] = None,
  1715. on_mouse_out: Optional[EventType[()]] = None,
  1716. on_mouse_over: Optional[EventType[()]] = None,
  1717. on_mouse_up: Optional[EventType[()]] = None,
  1718. on_scroll: Optional[EventType[()]] = None,
  1719. on_unmount: Optional[EventType[()]] = None,
  1720. **props,
  1721. ) -> "Strong":
  1722. """Create a new component instance.
  1723. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  1724. other UI libraries for common names, like Text and Button.
  1725. Args:
  1726. *children: Child components.
  1727. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1728. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1729. content_editable: Indicates whether the element's content is editable.
  1730. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1731. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1732. draggable: Defines whether the element can be dragged.
  1733. enter_key_hint: Hints what media types the media element is able to play.
  1734. hidden: Defines whether the element is hidden.
  1735. input_mode: Defines the type of the element.
  1736. item_prop: Defines the name of the element for metadata purposes.
  1737. lang: Defines the language used in the element.
  1738. role: Defines the role of the element.
  1739. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1740. spell_check: Defines whether the element may be checked for spelling errors.
  1741. tab_index: Defines the position of the current element in the tabbing order.
  1742. title: Defines a tooltip for the element.
  1743. style: The style of the component.
  1744. key: A unique key for the component.
  1745. id: The id for the component.
  1746. class_name: The class name for the component.
  1747. autofocus: Whether the component should take the focus once the page is loaded
  1748. custom_attrs: custom attribute
  1749. **props: Component properties.
  1750. Returns:
  1751. A new component instance.
  1752. """
  1753. ...
  1754. class TextNamespace(ComponentNamespace):
  1755. em = staticmethod(Em.create)
  1756. kbd = staticmethod(Kbd.create)
  1757. quote = staticmethod(Quote.create)
  1758. strong = staticmethod(Strong.create)
  1759. span = staticmethod(Span.create)
  1760. @staticmethod
  1761. def __call__(
  1762. *children,
  1763. as_child: Var[bool] | bool | None = None,
  1764. as_: Literal[
  1765. "abbr",
  1766. "b",
  1767. "cite",
  1768. "del",
  1769. "div",
  1770. "em",
  1771. "i",
  1772. "ins",
  1773. "kbd",
  1774. "label",
  1775. "mark",
  1776. "p",
  1777. "s",
  1778. "samp",
  1779. "span",
  1780. "sub",
  1781. "sup",
  1782. "u",
  1783. ]
  1784. | Var[
  1785. Literal[
  1786. "abbr",
  1787. "b",
  1788. "cite",
  1789. "del",
  1790. "div",
  1791. "em",
  1792. "i",
  1793. "ins",
  1794. "kbd",
  1795. "label",
  1796. "mark",
  1797. "p",
  1798. "s",
  1799. "samp",
  1800. "span",
  1801. "sub",
  1802. "sup",
  1803. "u",
  1804. ]
  1805. ]
  1806. | None = None,
  1807. size: Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  1808. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  1809. | Var[
  1810. Breakpoints[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]
  1811. | Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]
  1812. ]
  1813. | None = None,
  1814. weight: Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  1815. | Literal["bold", "light", "medium", "regular"]
  1816. | Var[
  1817. Breakpoints[str, Literal["bold", "light", "medium", "regular"]]
  1818. | Literal["bold", "light", "medium", "regular"]
  1819. ]
  1820. | None = None,
  1821. align: Breakpoints[str, Literal["center", "left", "right"]]
  1822. | Literal["center", "left", "right"]
  1823. | Var[
  1824. Breakpoints[str, Literal["center", "left", "right"]]
  1825. | Literal["center", "left", "right"]
  1826. ]
  1827. | None = None,
  1828. trim: Breakpoints[str, Literal["both", "end", "normal", "start"]]
  1829. | Literal["both", "end", "normal", "start"]
  1830. | Var[
  1831. Breakpoints[str, Literal["both", "end", "normal", "start"]]
  1832. | Literal["both", "end", "normal", "start"]
  1833. ]
  1834. | None = None,
  1835. color_scheme: Literal[
  1836. "amber",
  1837. "blue",
  1838. "bronze",
  1839. "brown",
  1840. "crimson",
  1841. "cyan",
  1842. "gold",
  1843. "grass",
  1844. "gray",
  1845. "green",
  1846. "indigo",
  1847. "iris",
  1848. "jade",
  1849. "lime",
  1850. "mint",
  1851. "orange",
  1852. "pink",
  1853. "plum",
  1854. "purple",
  1855. "red",
  1856. "ruby",
  1857. "sky",
  1858. "teal",
  1859. "tomato",
  1860. "violet",
  1861. "yellow",
  1862. ]
  1863. | Var[
  1864. Literal[
  1865. "amber",
  1866. "blue",
  1867. "bronze",
  1868. "brown",
  1869. "crimson",
  1870. "cyan",
  1871. "gold",
  1872. "grass",
  1873. "gray",
  1874. "green",
  1875. "indigo",
  1876. "iris",
  1877. "jade",
  1878. "lime",
  1879. "mint",
  1880. "orange",
  1881. "pink",
  1882. "plum",
  1883. "purple",
  1884. "red",
  1885. "ruby",
  1886. "sky",
  1887. "teal",
  1888. "tomato",
  1889. "violet",
  1890. "yellow",
  1891. ]
  1892. ]
  1893. | None = None,
  1894. high_contrast: Var[bool] | bool | None = None,
  1895. access_key: Var[str] | str | None = None,
  1896. auto_capitalize: Literal[
  1897. "characters", "none", "off", "on", "sentences", "words"
  1898. ]
  1899. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  1900. | None = None,
  1901. content_editable: Literal["inherit", "plaintext-only", False, True]
  1902. | Var[Literal["inherit", "plaintext-only", False, True]]
  1903. | None = None,
  1904. context_menu: Var[str] | str | None = None,
  1905. dir: Var[str] | str | None = None,
  1906. draggable: Var[bool] | bool | None = None,
  1907. enter_key_hint: Literal[
  1908. "done", "enter", "go", "next", "previous", "search", "send"
  1909. ]
  1910. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  1911. | None = None,
  1912. hidden: Var[bool] | bool | None = None,
  1913. input_mode: Literal[
  1914. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1915. ]
  1916. | Var[
  1917. Literal[
  1918. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1919. ]
  1920. ]
  1921. | None = None,
  1922. item_prop: Var[str] | str | None = None,
  1923. lang: Var[str] | str | None = None,
  1924. role: Literal[
  1925. "alert",
  1926. "alertdialog",
  1927. "application",
  1928. "article",
  1929. "banner",
  1930. "button",
  1931. "cell",
  1932. "checkbox",
  1933. "columnheader",
  1934. "combobox",
  1935. "complementary",
  1936. "contentinfo",
  1937. "definition",
  1938. "dialog",
  1939. "directory",
  1940. "document",
  1941. "feed",
  1942. "figure",
  1943. "form",
  1944. "grid",
  1945. "gridcell",
  1946. "group",
  1947. "heading",
  1948. "img",
  1949. "link",
  1950. "list",
  1951. "listbox",
  1952. "listitem",
  1953. "log",
  1954. "main",
  1955. "marquee",
  1956. "math",
  1957. "menu",
  1958. "menubar",
  1959. "menuitem",
  1960. "menuitemcheckbox",
  1961. "menuitemradio",
  1962. "navigation",
  1963. "none",
  1964. "note",
  1965. "option",
  1966. "presentation",
  1967. "progressbar",
  1968. "radio",
  1969. "radiogroup",
  1970. "region",
  1971. "row",
  1972. "rowgroup",
  1973. "rowheader",
  1974. "scrollbar",
  1975. "search",
  1976. "searchbox",
  1977. "separator",
  1978. "slider",
  1979. "spinbutton",
  1980. "status",
  1981. "switch",
  1982. "tab",
  1983. "table",
  1984. "tablist",
  1985. "tabpanel",
  1986. "term",
  1987. "textbox",
  1988. "timer",
  1989. "toolbar",
  1990. "tooltip",
  1991. "tree",
  1992. "treegrid",
  1993. "treeitem",
  1994. ]
  1995. | Var[
  1996. Literal[
  1997. "alert",
  1998. "alertdialog",
  1999. "application",
  2000. "article",
  2001. "banner",
  2002. "button",
  2003. "cell",
  2004. "checkbox",
  2005. "columnheader",
  2006. "combobox",
  2007. "complementary",
  2008. "contentinfo",
  2009. "definition",
  2010. "dialog",
  2011. "directory",
  2012. "document",
  2013. "feed",
  2014. "figure",
  2015. "form",
  2016. "grid",
  2017. "gridcell",
  2018. "group",
  2019. "heading",
  2020. "img",
  2021. "link",
  2022. "list",
  2023. "listbox",
  2024. "listitem",
  2025. "log",
  2026. "main",
  2027. "marquee",
  2028. "math",
  2029. "menu",
  2030. "menubar",
  2031. "menuitem",
  2032. "menuitemcheckbox",
  2033. "menuitemradio",
  2034. "navigation",
  2035. "none",
  2036. "note",
  2037. "option",
  2038. "presentation",
  2039. "progressbar",
  2040. "radio",
  2041. "radiogroup",
  2042. "region",
  2043. "row",
  2044. "rowgroup",
  2045. "rowheader",
  2046. "scrollbar",
  2047. "search",
  2048. "searchbox",
  2049. "separator",
  2050. "slider",
  2051. "spinbutton",
  2052. "status",
  2053. "switch",
  2054. "tab",
  2055. "table",
  2056. "tablist",
  2057. "tabpanel",
  2058. "term",
  2059. "textbox",
  2060. "timer",
  2061. "toolbar",
  2062. "tooltip",
  2063. "tree",
  2064. "treegrid",
  2065. "treeitem",
  2066. ]
  2067. ]
  2068. | None = None,
  2069. slot: Var[str] | str | None = None,
  2070. spell_check: Var[bool] | bool | None = None,
  2071. tab_index: Var[int] | int | None = None,
  2072. title: Var[str] | str | None = None,
  2073. style: Style | None = None,
  2074. key: Any | None = None,
  2075. id: Any | None = None,
  2076. class_name: Any | None = None,
  2077. autofocus: bool | None = None,
  2078. custom_attrs: dict[str, Var | Any] | None = None,
  2079. on_blur: Optional[EventType[()]] = None,
  2080. on_click: Optional[EventType[()]] = None,
  2081. on_context_menu: Optional[EventType[()]] = None,
  2082. on_double_click: Optional[EventType[()]] = None,
  2083. on_focus: Optional[EventType[()]] = None,
  2084. on_mount: Optional[EventType[()]] = None,
  2085. on_mouse_down: Optional[EventType[()]] = None,
  2086. on_mouse_enter: Optional[EventType[()]] = None,
  2087. on_mouse_leave: Optional[EventType[()]] = None,
  2088. on_mouse_move: Optional[EventType[()]] = None,
  2089. on_mouse_out: Optional[EventType[()]] = None,
  2090. on_mouse_over: Optional[EventType[()]] = None,
  2091. on_mouse_up: Optional[EventType[()]] = None,
  2092. on_scroll: Optional[EventType[()]] = None,
  2093. on_unmount: Optional[EventType[()]] = None,
  2094. **props,
  2095. ) -> "Text":
  2096. """Create a new component instance.
  2097. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  2098. other UI libraries for common names, like Text and Button.
  2099. Args:
  2100. *children: Child components.
  2101. as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
  2102. as_: Change the default rendered element into a semantically appropriate alternative (cannot be used with asChild)
  2103. size: Text size: "1" - "9"
  2104. weight: Thickness of text: "light" | "regular" | "medium" | "bold"
  2105. align: Alignment of text in element: "left" | "center" | "right"
  2106. trim: Removes the leading trim space: "normal" | "start" | "end" | "both"
  2107. color_scheme: Overrides the accent color inherited from the Theme.
  2108. high_contrast: Whether to render the text with higher contrast color
  2109. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  2110. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  2111. content_editable: Indicates whether the element's content is editable.
  2112. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  2113. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  2114. draggable: Defines whether the element can be dragged.
  2115. enter_key_hint: Hints what media types the media element is able to play.
  2116. hidden: Defines whether the element is hidden.
  2117. input_mode: Defines the type of the element.
  2118. item_prop: Defines the name of the element for metadata purposes.
  2119. lang: Defines the language used in the element.
  2120. role: Defines the role of the element.
  2121. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  2122. spell_check: Defines whether the element may be checked for spelling errors.
  2123. tab_index: Defines the position of the current element in the tabbing order.
  2124. title: Defines a tooltip for the element.
  2125. style: The style of the component.
  2126. key: A unique key for the component.
  2127. id: The id for the component.
  2128. class_name: The class name for the component.
  2129. autofocus: Whether the component should take the focus once the page is loaded
  2130. custom_attrs: custom attribute
  2131. **props: Component properties.
  2132. Returns:
  2133. A new component instance.
  2134. """
  2135. ...
  2136. text = TextNamespace()