forms.pyi 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876
  1. """Stub file for reflex/components/el/elements/forms.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, Optional, Union, overload
  6. from jinja2 import Environment
  7. from reflex.components.el.element import Element
  8. from reflex.event import EventHandler, EventSpec
  9. from reflex.ivars.base import ImmutableVar
  10. from reflex.style import Style
  11. from reflex.utils.imports import ImportDict
  12. from reflex.vars import Var
  13. from .base import BaseHTML
  14. FORM_DATA = ImmutableVar.create("form_data")
  15. HANDLE_SUBMIT_JS_JINJA2 = Environment().from_string(
  16. "\n const handleSubmit_{{ handle_submit_unique_name }} = useCallback((ev) => {\n const $form = ev.target\n ev.preventDefault()\n const {{ form_data }} = {...Object.fromEntries(new FormData($form).entries()), ...{{ field_ref_mapping }}};\n\n ({{ on_submit_event_chain }}());\n\n if ({{ reset_on_submit }}) {\n $form.reset()\n }\n })\n "
  17. )
  18. class Button(BaseHTML):
  19. @overload
  20. @classmethod
  21. def create( # type: ignore
  22. cls,
  23. *children,
  24. auto_focus: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  25. disabled: Optional[Union[Var[bool], bool]] = None,
  26. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  27. form_action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  28. form_enc_type: Optional[
  29. Union[Var[Union[bool, int, str]], str, int, bool]
  30. ] = None,
  31. form_method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  32. form_no_validate: Optional[
  33. Union[Var[Union[bool, int, str]], str, int, bool]
  34. ] = None,
  35. form_target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  36. name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  37. type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  38. value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  39. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  40. auto_capitalize: Optional[
  41. Union[Var[Union[bool, int, str]], str, int, bool]
  42. ] = None,
  43. content_editable: Optional[
  44. Union[Var[Union[bool, int, str]], str, int, bool]
  45. ] = None,
  46. context_menu: Optional[
  47. Union[Var[Union[bool, int, str]], str, int, bool]
  48. ] = None,
  49. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  50. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  51. enter_key_hint: Optional[
  52. Union[Var[Union[bool, int, str]], str, int, bool]
  53. ] = None,
  54. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  55. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  56. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  57. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  58. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  59. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  60. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  61. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  62. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  63. style: Optional[Style] = None,
  64. key: Optional[Any] = None,
  65. id: Optional[Any] = None,
  66. class_name: Optional[Any] = None,
  67. autofocus: Optional[bool] = None,
  68. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  69. on_blur: Optional[
  70. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  71. ] = None,
  72. on_click: Optional[
  73. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  74. ] = None,
  75. on_context_menu: Optional[
  76. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  77. ] = None,
  78. on_double_click: Optional[
  79. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  80. ] = None,
  81. on_focus: Optional[
  82. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  83. ] = None,
  84. on_mount: Optional[
  85. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  86. ] = None,
  87. on_mouse_down: Optional[
  88. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  89. ] = None,
  90. on_mouse_enter: Optional[
  91. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  92. ] = None,
  93. on_mouse_leave: Optional[
  94. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  95. ] = None,
  96. on_mouse_move: Optional[
  97. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  98. ] = None,
  99. on_mouse_out: Optional[
  100. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  101. ] = None,
  102. on_mouse_over: Optional[
  103. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  104. ] = None,
  105. on_mouse_up: Optional[
  106. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  107. ] = None,
  108. on_scroll: Optional[
  109. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  110. ] = None,
  111. on_unmount: Optional[
  112. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  113. ] = None,
  114. **props,
  115. ) -> "Button":
  116. """Create the component.
  117. Args:
  118. *children: The children of the component.
  119. auto_focus: Automatically focuses the button when the page loads
  120. disabled: Disables the button
  121. form: Associates the button with a form (by id)
  122. form_action: URL to send the form data to (for type="submit" buttons)
  123. form_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons)
  124. form_method: HTTP method to use for sending form data (for type="submit" buttons)
  125. form_no_validate: Bypasses form validation when submitting (for type="submit" buttons)
  126. form_target: Specifies where to display the response after submitting the form (for type="submit" buttons)
  127. name: Name of the button, used when sending form data
  128. type: Type of the button (submit, reset, or button)
  129. value: Value of the button, used when sending form data
  130. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  131. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  132. content_editable: Indicates whether the element's content is editable.
  133. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  134. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  135. draggable: Defines whether the element can be dragged.
  136. enter_key_hint: Hints what media types the media element is able to play.
  137. hidden: Defines whether the element is hidden.
  138. input_mode: Defines the type of the element.
  139. item_prop: Defines the name of the element for metadata purposes.
  140. lang: Defines the language used in the element.
  141. role: Defines the role of the element.
  142. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  143. spell_check: Defines whether the element may be checked for spelling errors.
  144. tab_index: Defines the position of the current element in the tabbing order.
  145. title: Defines a tooltip for the element.
  146. style: The style of the component.
  147. key: A unique key for the component.
  148. id: The id for the component.
  149. class_name: The class name for the component.
  150. autofocus: Whether the component should take the focus once the page is loaded
  151. custom_attrs: custom attribute
  152. **props: The props of the component.
  153. Returns:
  154. The component.
  155. """
  156. ...
  157. class Datalist(BaseHTML):
  158. @overload
  159. @classmethod
  160. def create( # type: ignore
  161. cls,
  162. *children,
  163. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  164. auto_capitalize: Optional[
  165. Union[Var[Union[bool, int, str]], str, int, bool]
  166. ] = None,
  167. content_editable: Optional[
  168. Union[Var[Union[bool, int, str]], str, int, bool]
  169. ] = None,
  170. context_menu: Optional[
  171. Union[Var[Union[bool, int, str]], str, int, bool]
  172. ] = None,
  173. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  174. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  175. enter_key_hint: Optional[
  176. Union[Var[Union[bool, int, str]], str, int, bool]
  177. ] = None,
  178. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  179. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  180. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  181. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  182. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  183. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  184. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  185. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  186. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  187. style: Optional[Style] = None,
  188. key: Optional[Any] = None,
  189. id: Optional[Any] = None,
  190. class_name: Optional[Any] = None,
  191. autofocus: Optional[bool] = None,
  192. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  193. on_blur: Optional[
  194. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  195. ] = None,
  196. on_click: Optional[
  197. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  198. ] = None,
  199. on_context_menu: Optional[
  200. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  201. ] = None,
  202. on_double_click: Optional[
  203. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  204. ] = None,
  205. on_focus: Optional[
  206. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  207. ] = None,
  208. on_mount: Optional[
  209. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  210. ] = None,
  211. on_mouse_down: Optional[
  212. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  213. ] = None,
  214. on_mouse_enter: Optional[
  215. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  216. ] = None,
  217. on_mouse_leave: Optional[
  218. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  219. ] = None,
  220. on_mouse_move: Optional[
  221. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  222. ] = None,
  223. on_mouse_out: Optional[
  224. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  225. ] = None,
  226. on_mouse_over: Optional[
  227. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  228. ] = None,
  229. on_mouse_up: Optional[
  230. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  231. ] = None,
  232. on_scroll: Optional[
  233. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  234. ] = None,
  235. on_unmount: Optional[
  236. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  237. ] = None,
  238. **props,
  239. ) -> "Datalist":
  240. """Create the component.
  241. Args:
  242. *children: The children of the component.
  243. access_key: No unique attributes, only common ones are inherited Provides a hint for generating a keyboard shortcut for the current element.
  244. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  245. content_editable: Indicates whether the element's content is editable.
  246. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  247. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  248. draggable: Defines whether the element can be dragged.
  249. enter_key_hint: Hints what media types the media element is able to play.
  250. hidden: Defines whether the element is hidden.
  251. input_mode: Defines the type of the element.
  252. item_prop: Defines the name of the element for metadata purposes.
  253. lang: Defines the language used in the element.
  254. role: Defines the role of the element.
  255. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  256. spell_check: Defines whether the element may be checked for spelling errors.
  257. tab_index: Defines the position of the current element in the tabbing order.
  258. title: Defines a tooltip for the element.
  259. style: The style of the component.
  260. key: A unique key for the component.
  261. id: The id for the component.
  262. class_name: The class name for the component.
  263. autofocus: Whether the component should take the focus once the page is loaded
  264. custom_attrs: custom attribute
  265. **props: The props of the component.
  266. Returns:
  267. The component.
  268. """
  269. ...
  270. class Fieldset(Element):
  271. @overload
  272. @classmethod
  273. def create( # type: ignore
  274. cls,
  275. *children,
  276. disabled: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  277. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  278. name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  279. style: Optional[Style] = None,
  280. key: Optional[Any] = None,
  281. id: Optional[Any] = None,
  282. class_name: Optional[Any] = None,
  283. autofocus: Optional[bool] = None,
  284. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  285. on_blur: Optional[
  286. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  287. ] = None,
  288. on_click: Optional[
  289. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  290. ] = None,
  291. on_context_menu: Optional[
  292. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  293. ] = None,
  294. on_double_click: Optional[
  295. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  296. ] = None,
  297. on_focus: Optional[
  298. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  299. ] = None,
  300. on_mount: Optional[
  301. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  302. ] = None,
  303. on_mouse_down: Optional[
  304. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  305. ] = None,
  306. on_mouse_enter: Optional[
  307. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  308. ] = None,
  309. on_mouse_leave: Optional[
  310. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  311. ] = None,
  312. on_mouse_move: Optional[
  313. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  314. ] = None,
  315. on_mouse_out: Optional[
  316. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  317. ] = None,
  318. on_mouse_over: Optional[
  319. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  320. ] = None,
  321. on_mouse_up: Optional[
  322. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  323. ] = None,
  324. on_scroll: Optional[
  325. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  326. ] = None,
  327. on_unmount: Optional[
  328. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  329. ] = None,
  330. **props,
  331. ) -> "Fieldset":
  332. """Create the component.
  333. Args:
  334. *children: The children of the component.
  335. disabled: Disables all the form control descendants of the fieldset
  336. form: Associates the fieldset with a form (by id)
  337. name: Name of the fieldset, used for scripting
  338. style: The style of the component.
  339. key: A unique key for the component.
  340. id: The id for the component.
  341. class_name: The class name for the component.
  342. autofocus: Whether the component should take the focus once the page is loaded
  343. custom_attrs: custom attribute
  344. **props: The props of the component.
  345. Returns:
  346. The component.
  347. """
  348. ...
  349. class Form(BaseHTML):
  350. @overload
  351. @classmethod
  352. def create( # type: ignore
  353. cls,
  354. *children,
  355. accept: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  356. accept_charset: Optional[
  357. Union[Var[Union[bool, int, str]], str, int, bool]
  358. ] = None,
  359. action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  360. auto_complete: Optional[
  361. Union[Var[Union[bool, int, str]], str, int, bool]
  362. ] = None,
  363. enc_type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  364. method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  365. name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  366. no_validate: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  367. target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  368. reset_on_submit: Optional[Union[Var[bool], bool]] = None,
  369. handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
  370. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  371. auto_capitalize: Optional[
  372. Union[Var[Union[bool, int, str]], str, int, bool]
  373. ] = None,
  374. content_editable: Optional[
  375. Union[Var[Union[bool, int, str]], str, int, bool]
  376. ] = None,
  377. context_menu: Optional[
  378. Union[Var[Union[bool, int, str]], str, int, bool]
  379. ] = None,
  380. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  381. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  382. enter_key_hint: Optional[
  383. Union[Var[Union[bool, int, str]], str, int, bool]
  384. ] = None,
  385. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  386. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  387. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  388. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  389. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  390. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  391. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  392. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  393. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  394. style: Optional[Style] = None,
  395. key: Optional[Any] = None,
  396. id: Optional[Any] = None,
  397. class_name: Optional[Any] = None,
  398. autofocus: Optional[bool] = None,
  399. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  400. on_blur: Optional[
  401. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  402. ] = None,
  403. on_click: Optional[
  404. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  405. ] = None,
  406. on_context_menu: Optional[
  407. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  408. ] = None,
  409. on_double_click: Optional[
  410. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  411. ] = None,
  412. on_focus: Optional[
  413. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  414. ] = None,
  415. on_mount: Optional[
  416. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  417. ] = None,
  418. on_mouse_down: Optional[
  419. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  420. ] = None,
  421. on_mouse_enter: Optional[
  422. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  423. ] = None,
  424. on_mouse_leave: Optional[
  425. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  426. ] = None,
  427. on_mouse_move: Optional[
  428. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  429. ] = None,
  430. on_mouse_out: Optional[
  431. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  432. ] = None,
  433. on_mouse_over: Optional[
  434. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  435. ] = None,
  436. on_mouse_up: Optional[
  437. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  438. ] = None,
  439. on_scroll: Optional[
  440. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  441. ] = None,
  442. on_submit: Optional[
  443. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  444. ] = None,
  445. on_unmount: Optional[
  446. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  447. ] = None,
  448. **props,
  449. ) -> "Form":
  450. """Create a form component.
  451. Args:
  452. *children: The children of the form.
  453. accept: MIME types the server accepts for file upload
  454. accept_charset: Character encodings to be used for form submission
  455. action: URL where the form's data should be submitted
  456. auto_complete: Whether the form should have autocomplete enabled
  457. enc_type: Encoding type for the form data when submitted
  458. method: HTTP method to use for form submission
  459. name: Name of the form
  460. no_validate: Indicates that the form should not be validated on submit
  461. target: Where to display the response after submitting the form
  462. reset_on_submit: If true, the form will be cleared after submit.
  463. handle_submit_unique_name: The name used to make this form's submit handler function unique.
  464. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  465. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  466. content_editable: Indicates whether the element's content is editable.
  467. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  468. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  469. draggable: Defines whether the element can be dragged.
  470. enter_key_hint: Hints what media types the media element is able to play.
  471. hidden: Defines whether the element is hidden.
  472. input_mode: Defines the type of the element.
  473. item_prop: Defines the name of the element for metadata purposes.
  474. lang: Defines the language used in the element.
  475. role: Defines the role of the element.
  476. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  477. spell_check: Defines whether the element may be checked for spelling errors.
  478. tab_index: Defines the position of the current element in the tabbing order.
  479. title: Defines a tooltip for the element.
  480. style: The style of the component.
  481. key: A unique key for the component.
  482. id: The id for the component.
  483. class_name: The class name for the component.
  484. autofocus: Whether the component should take the focus once the page is loaded
  485. custom_attrs: custom attribute
  486. **props: The properties of the form.
  487. Returns:
  488. The form component.
  489. """
  490. ...
  491. def add_imports(self) -> ImportDict: ...
  492. def add_hooks(self) -> list[str]: ...
  493. class Input(BaseHTML):
  494. @overload
  495. @classmethod
  496. def create( # type: ignore
  497. cls,
  498. *children,
  499. accept: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  500. alt: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  501. auto_complete: Optional[
  502. Union[Var[Union[bool, int, str]], str, int, bool]
  503. ] = None,
  504. auto_focus: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  505. capture: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  506. checked: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  507. default_checked: Optional[Union[Var[bool], bool]] = None,
  508. default_value: Optional[Union[Var[str], str]] = None,
  509. dirname: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  510. disabled: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  511. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  512. form_action: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  513. form_enc_type: Optional[
  514. Union[Var[Union[bool, int, str]], str, int, bool]
  515. ] = None,
  516. form_method: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  517. form_no_validate: Optional[
  518. Union[Var[Union[bool, int, str]], str, int, bool]
  519. ] = None,
  520. form_target: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  521. list: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  522. max: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  523. max_length: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  524. min_length: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  525. min: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  526. multiple: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  527. name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  528. pattern: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  529. placeholder: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  530. read_only: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  531. required: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  532. size: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  533. src: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  534. step: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  535. type: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  536. use_map: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  537. value: Optional[Union[Var[Union[float, int, str]], str, int, float]] = None,
  538. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  539. auto_capitalize: Optional[
  540. Union[Var[Union[bool, int, str]], str, int, bool]
  541. ] = None,
  542. content_editable: Optional[
  543. Union[Var[Union[bool, int, str]], str, int, bool]
  544. ] = None,
  545. context_menu: Optional[
  546. Union[Var[Union[bool, int, str]], str, int, bool]
  547. ] = None,
  548. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  549. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  550. enter_key_hint: Optional[
  551. Union[Var[Union[bool, int, str]], str, int, bool]
  552. ] = None,
  553. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  554. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  555. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  556. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  557. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  558. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  559. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  560. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  561. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  562. style: Optional[Style] = None,
  563. key: Optional[Any] = None,
  564. id: Optional[Any] = None,
  565. class_name: Optional[Any] = None,
  566. autofocus: Optional[bool] = None,
  567. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  568. on_blur: Optional[
  569. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  570. ] = None,
  571. on_change: Optional[
  572. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  573. ] = None,
  574. on_click: Optional[
  575. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  576. ] = None,
  577. on_context_menu: Optional[
  578. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  579. ] = None,
  580. on_double_click: Optional[
  581. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  582. ] = None,
  583. on_focus: Optional[
  584. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  585. ] = None,
  586. on_key_down: Optional[
  587. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  588. ] = None,
  589. on_key_up: Optional[
  590. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  591. ] = None,
  592. on_mount: Optional[
  593. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  594. ] = None,
  595. on_mouse_down: Optional[
  596. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  597. ] = None,
  598. on_mouse_enter: Optional[
  599. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  600. ] = None,
  601. on_mouse_leave: Optional[
  602. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  603. ] = None,
  604. on_mouse_move: Optional[
  605. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  606. ] = None,
  607. on_mouse_out: Optional[
  608. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  609. ] = None,
  610. on_mouse_over: Optional[
  611. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  612. ] = None,
  613. on_mouse_up: Optional[
  614. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  615. ] = None,
  616. on_scroll: Optional[
  617. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  618. ] = None,
  619. on_unmount: Optional[
  620. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  621. ] = None,
  622. **props,
  623. ) -> "Input":
  624. """Create the component.
  625. Args:
  626. *children: The children of the component.
  627. accept: Accepted types of files when the input is file type
  628. alt: Alternate text for input type="image"
  629. auto_complete: Whether the input should have autocomplete enabled
  630. auto_focus: Automatically focuses the input when the page loads
  631. capture: Captures media from the user (camera or microphone)
  632. checked: Indicates whether the input is checked (for checkboxes and radio buttons)
  633. default_checked: The initial value (for checkboxes and radio buttons)
  634. default_value: The initial value for a text field
  635. dirname: Name part of the input to submit in 'dir' and 'name' pair when form is submitted
  636. disabled: Disables the input
  637. form: Associates the input with a form (by id)
  638. form_action: URL to send the form data to (for type="submit" buttons)
  639. form_enc_type: How the form data should be encoded when submitting to the server (for type="submit" buttons)
  640. form_method: HTTP method to use for sending form data (for type="submit" buttons)
  641. form_no_validate: Bypasses form validation when submitting (for type="submit" buttons)
  642. form_target: Specifies where to display the response after submitting the form (for type="submit" buttons)
  643. list: References a datalist for suggested options
  644. max: Specifies the maximum value for the input
  645. max_length: Specifies the maximum number of characters allowed in the input
  646. min_length: Specifies the minimum number of characters required in the input
  647. min: Specifies the minimum value for the input
  648. multiple: Indicates whether multiple values can be entered in an input of the type email or file
  649. name: Name of the input, used when sending form data
  650. pattern: Regex pattern the input's value must match to be valid
  651. placeholder: Placeholder text in the input
  652. read_only: Indicates whether the input is read-only
  653. required: Indicates that the input is required
  654. size: Specifies the visible width of a text control
  655. src: URL for image inputs
  656. step: Specifies the legal number intervals for an input
  657. type: Specifies the type of input
  658. use_map: Name of the image map used with the input
  659. value: Value of the input
  660. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  661. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  662. content_editable: Indicates whether the element's content is editable.
  663. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  664. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  665. draggable: Defines whether the element can be dragged.
  666. enter_key_hint: Hints what media types the media element is able to play.
  667. hidden: Defines whether the element is hidden.
  668. input_mode: Defines the type of the element.
  669. item_prop: Defines the name of the element for metadata purposes.
  670. lang: Defines the language used in the element.
  671. role: Defines the role of the element.
  672. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  673. spell_check: Defines whether the element may be checked for spelling errors.
  674. tab_index: Defines the position of the current element in the tabbing order.
  675. title: Defines a tooltip for the element.
  676. style: The style of the component.
  677. key: A unique key for the component.
  678. id: The id for the component.
  679. class_name: The class name for the component.
  680. autofocus: Whether the component should take the focus once the page is loaded
  681. custom_attrs: custom attribute
  682. **props: The props of the component.
  683. Returns:
  684. The component.
  685. """
  686. ...
  687. class Label(BaseHTML):
  688. @overload
  689. @classmethod
  690. def create( # type: ignore
  691. cls,
  692. *children,
  693. html_for: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  694. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  695. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  696. auto_capitalize: Optional[
  697. Union[Var[Union[bool, int, str]], str, int, bool]
  698. ] = None,
  699. content_editable: Optional[
  700. Union[Var[Union[bool, int, str]], str, int, bool]
  701. ] = None,
  702. context_menu: Optional[
  703. Union[Var[Union[bool, int, str]], str, int, bool]
  704. ] = None,
  705. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  706. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  707. enter_key_hint: Optional[
  708. Union[Var[Union[bool, int, str]], str, int, bool]
  709. ] = None,
  710. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  711. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  712. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  713. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  714. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  715. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  716. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  717. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  718. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  719. style: Optional[Style] = None,
  720. key: Optional[Any] = None,
  721. id: Optional[Any] = None,
  722. class_name: Optional[Any] = None,
  723. autofocus: Optional[bool] = None,
  724. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  725. on_blur: Optional[
  726. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  727. ] = None,
  728. on_click: Optional[
  729. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  730. ] = None,
  731. on_context_menu: Optional[
  732. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  733. ] = None,
  734. on_double_click: Optional[
  735. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  736. ] = None,
  737. on_focus: Optional[
  738. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  739. ] = None,
  740. on_mount: Optional[
  741. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  742. ] = None,
  743. on_mouse_down: Optional[
  744. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  745. ] = None,
  746. on_mouse_enter: Optional[
  747. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  748. ] = None,
  749. on_mouse_leave: Optional[
  750. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  751. ] = None,
  752. on_mouse_move: Optional[
  753. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  754. ] = None,
  755. on_mouse_out: Optional[
  756. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  757. ] = None,
  758. on_mouse_over: Optional[
  759. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  760. ] = None,
  761. on_mouse_up: Optional[
  762. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  763. ] = None,
  764. on_scroll: Optional[
  765. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  766. ] = None,
  767. on_unmount: Optional[
  768. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  769. ] = None,
  770. **props,
  771. ) -> "Label":
  772. """Create the component.
  773. Args:
  774. *children: The children of the component.
  775. html_for: ID of a form control with which the label is associated
  776. form: Associates the label with a form (by id)
  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: The props of the component.
  800. Returns:
  801. The component.
  802. """
  803. ...
  804. class Legend(BaseHTML):
  805. @overload
  806. @classmethod
  807. def create( # type: ignore
  808. cls,
  809. *children,
  810. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  811. auto_capitalize: Optional[
  812. Union[Var[Union[bool, int, str]], str, int, bool]
  813. ] = None,
  814. content_editable: Optional[
  815. Union[Var[Union[bool, int, str]], str, int, bool]
  816. ] = None,
  817. context_menu: Optional[
  818. Union[Var[Union[bool, int, str]], str, int, bool]
  819. ] = None,
  820. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  821. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  822. enter_key_hint: Optional[
  823. Union[Var[Union[bool, int, str]], str, int, bool]
  824. ] = None,
  825. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  826. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  827. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  828. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  829. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  830. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  831. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  832. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  833. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = 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[ImmutableVar, str]]] = None,
  840. on_blur: Optional[
  841. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  842. ] = None,
  843. on_click: Optional[
  844. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  845. ] = None,
  846. on_context_menu: Optional[
  847. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  848. ] = None,
  849. on_double_click: Optional[
  850. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  851. ] = None,
  852. on_focus: Optional[
  853. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  854. ] = None,
  855. on_mount: Optional[
  856. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  857. ] = None,
  858. on_mouse_down: Optional[
  859. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  860. ] = None,
  861. on_mouse_enter: Optional[
  862. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  863. ] = None,
  864. on_mouse_leave: Optional[
  865. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  866. ] = None,
  867. on_mouse_move: Optional[
  868. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  869. ] = None,
  870. on_mouse_out: Optional[
  871. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  872. ] = None,
  873. on_mouse_over: Optional[
  874. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  875. ] = None,
  876. on_mouse_up: Optional[
  877. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  878. ] = None,
  879. on_scroll: Optional[
  880. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  881. ] = None,
  882. on_unmount: Optional[
  883. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  884. ] = None,
  885. **props,
  886. ) -> "Legend":
  887. """Create the component.
  888. Args:
  889. *children: The children of the component.
  890. access_key: No unique attributes, only common ones are inherited Provides a hint for generating a keyboard shortcut for the current element.
  891. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  892. content_editable: Indicates whether the element's content is editable.
  893. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  894. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  895. draggable: Defines whether the element can be dragged.
  896. enter_key_hint: Hints what media types the media element is able to play.
  897. hidden: Defines whether the element is hidden.
  898. input_mode: Defines the type of the element.
  899. item_prop: Defines the name of the element for metadata purposes.
  900. lang: Defines the language used in the element.
  901. role: Defines the role of the element.
  902. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  903. spell_check: Defines whether the element may be checked for spelling errors.
  904. tab_index: Defines the position of the current element in the tabbing order.
  905. title: Defines a tooltip for the element.
  906. style: The style of the component.
  907. key: A unique key for the component.
  908. id: The id for the component.
  909. class_name: The class name for the component.
  910. autofocus: Whether the component should take the focus once the page is loaded
  911. custom_attrs: custom attribute
  912. **props: The props of the component.
  913. Returns:
  914. The component.
  915. """
  916. ...
  917. class Meter(BaseHTML):
  918. @overload
  919. @classmethod
  920. def create( # type: ignore
  921. cls,
  922. *children,
  923. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  924. high: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  925. low: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  926. max: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  927. min: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  928. optimum: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  929. value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  930. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  931. auto_capitalize: Optional[
  932. Union[Var[Union[bool, int, str]], str, int, bool]
  933. ] = None,
  934. content_editable: Optional[
  935. Union[Var[Union[bool, int, str]], str, int, bool]
  936. ] = None,
  937. context_menu: Optional[
  938. Union[Var[Union[bool, int, str]], str, int, bool]
  939. ] = None,
  940. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  941. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  942. enter_key_hint: Optional[
  943. Union[Var[Union[bool, int, str]], str, int, bool]
  944. ] = None,
  945. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  946. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  947. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  948. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  949. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  950. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  951. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  952. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  953. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  954. style: Optional[Style] = None,
  955. key: Optional[Any] = None,
  956. id: Optional[Any] = None,
  957. class_name: Optional[Any] = None,
  958. autofocus: Optional[bool] = None,
  959. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  960. on_blur: Optional[
  961. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  962. ] = None,
  963. on_click: Optional[
  964. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  965. ] = None,
  966. on_context_menu: Optional[
  967. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  968. ] = None,
  969. on_double_click: Optional[
  970. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  971. ] = None,
  972. on_focus: Optional[
  973. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  974. ] = None,
  975. on_mount: Optional[
  976. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  977. ] = None,
  978. on_mouse_down: Optional[
  979. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  980. ] = None,
  981. on_mouse_enter: Optional[
  982. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  983. ] = None,
  984. on_mouse_leave: Optional[
  985. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  986. ] = None,
  987. on_mouse_move: Optional[
  988. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  989. ] = None,
  990. on_mouse_out: Optional[
  991. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  992. ] = None,
  993. on_mouse_over: Optional[
  994. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  995. ] = None,
  996. on_mouse_up: Optional[
  997. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  998. ] = None,
  999. on_scroll: Optional[
  1000. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1001. ] = None,
  1002. on_unmount: Optional[
  1003. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1004. ] = None,
  1005. **props,
  1006. ) -> "Meter":
  1007. """Create the component.
  1008. Args:
  1009. *children: The children of the component.
  1010. form: Associates the meter with a form (by id)
  1011. high: High limit of range (above this is considered high value)
  1012. low: Low limit of range (below this is considered low value)
  1013. max: Maximum value of the range
  1014. min: Minimum value of the range
  1015. optimum: Optimum value in the range
  1016. value: Current value of the meter
  1017. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1018. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1019. content_editable: Indicates whether the element's content is editable.
  1020. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1021. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1022. draggable: Defines whether the element can be dragged.
  1023. enter_key_hint: Hints what media types the media element is able to play.
  1024. hidden: Defines whether the element is hidden.
  1025. input_mode: Defines the type of the element.
  1026. item_prop: Defines the name of the element for metadata purposes.
  1027. lang: Defines the language used in the element.
  1028. role: Defines the role of the element.
  1029. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1030. spell_check: Defines whether the element may be checked for spelling errors.
  1031. tab_index: Defines the position of the current element in the tabbing order.
  1032. title: Defines a tooltip for the element.
  1033. style: The style of the component.
  1034. key: A unique key for the component.
  1035. id: The id for the component.
  1036. class_name: The class name for the component.
  1037. autofocus: Whether the component should take the focus once the page is loaded
  1038. custom_attrs: custom attribute
  1039. **props: The props of the component.
  1040. Returns:
  1041. The component.
  1042. """
  1043. ...
  1044. class Optgroup(BaseHTML):
  1045. @overload
  1046. @classmethod
  1047. def create( # type: ignore
  1048. cls,
  1049. *children,
  1050. disabled: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1051. label: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1052. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1053. auto_capitalize: Optional[
  1054. Union[Var[Union[bool, int, str]], str, int, bool]
  1055. ] = None,
  1056. content_editable: Optional[
  1057. Union[Var[Union[bool, int, str]], str, int, bool]
  1058. ] = None,
  1059. context_menu: Optional[
  1060. Union[Var[Union[bool, int, str]], str, int, bool]
  1061. ] = None,
  1062. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1063. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1064. enter_key_hint: Optional[
  1065. Union[Var[Union[bool, int, str]], str, int, bool]
  1066. ] = None,
  1067. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1068. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1069. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1070. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1071. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1072. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1073. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1074. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1075. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1076. style: Optional[Style] = None,
  1077. key: Optional[Any] = None,
  1078. id: Optional[Any] = None,
  1079. class_name: Optional[Any] = None,
  1080. autofocus: Optional[bool] = None,
  1081. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  1082. on_blur: Optional[
  1083. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1084. ] = None,
  1085. on_click: Optional[
  1086. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1087. ] = None,
  1088. on_context_menu: Optional[
  1089. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1090. ] = None,
  1091. on_double_click: Optional[
  1092. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1093. ] = None,
  1094. on_focus: Optional[
  1095. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1096. ] = None,
  1097. on_mount: Optional[
  1098. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1099. ] = None,
  1100. on_mouse_down: Optional[
  1101. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1102. ] = None,
  1103. on_mouse_enter: Optional[
  1104. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1105. ] = None,
  1106. on_mouse_leave: Optional[
  1107. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1108. ] = None,
  1109. on_mouse_move: Optional[
  1110. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1111. ] = None,
  1112. on_mouse_out: Optional[
  1113. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1114. ] = None,
  1115. on_mouse_over: Optional[
  1116. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1117. ] = None,
  1118. on_mouse_up: Optional[
  1119. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1120. ] = None,
  1121. on_scroll: Optional[
  1122. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1123. ] = None,
  1124. on_unmount: Optional[
  1125. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1126. ] = None,
  1127. **props,
  1128. ) -> "Optgroup":
  1129. """Create the component.
  1130. Args:
  1131. *children: The children of the component.
  1132. disabled: Disables the optgroup
  1133. label: Label for the optgroup
  1134. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1135. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1136. content_editable: Indicates whether the element's content is editable.
  1137. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1138. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1139. draggable: Defines whether the element can be dragged.
  1140. enter_key_hint: Hints what media types the media element is able to play.
  1141. hidden: Defines whether the element is hidden.
  1142. input_mode: Defines the type of the element.
  1143. item_prop: Defines the name of the element for metadata purposes.
  1144. lang: Defines the language used in the element.
  1145. role: Defines the role of the element.
  1146. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1147. spell_check: Defines whether the element may be checked for spelling errors.
  1148. tab_index: Defines the position of the current element in the tabbing order.
  1149. title: Defines a tooltip for the element.
  1150. style: The style of the component.
  1151. key: A unique key for the component.
  1152. id: The id for the component.
  1153. class_name: The class name for the component.
  1154. autofocus: Whether the component should take the focus once the page is loaded
  1155. custom_attrs: custom attribute
  1156. **props: The props of the component.
  1157. Returns:
  1158. The component.
  1159. """
  1160. ...
  1161. class Option(BaseHTML):
  1162. @overload
  1163. @classmethod
  1164. def create( # type: ignore
  1165. cls,
  1166. *children,
  1167. disabled: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1168. label: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1169. selected: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1170. value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1171. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1172. auto_capitalize: Optional[
  1173. Union[Var[Union[bool, int, str]], str, int, bool]
  1174. ] = None,
  1175. content_editable: Optional[
  1176. Union[Var[Union[bool, int, str]], str, int, bool]
  1177. ] = None,
  1178. context_menu: Optional[
  1179. Union[Var[Union[bool, int, str]], str, int, bool]
  1180. ] = None,
  1181. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1182. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1183. enter_key_hint: Optional[
  1184. Union[Var[Union[bool, int, str]], str, int, bool]
  1185. ] = None,
  1186. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1187. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1188. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1189. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1190. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1191. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1192. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1193. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1194. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1195. style: Optional[Style] = None,
  1196. key: Optional[Any] = None,
  1197. id: Optional[Any] = None,
  1198. class_name: Optional[Any] = None,
  1199. autofocus: Optional[bool] = None,
  1200. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  1201. on_blur: Optional[
  1202. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1203. ] = None,
  1204. on_click: Optional[
  1205. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1206. ] = None,
  1207. on_context_menu: Optional[
  1208. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1209. ] = None,
  1210. on_double_click: Optional[
  1211. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1212. ] = None,
  1213. on_focus: Optional[
  1214. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1215. ] = None,
  1216. on_mount: Optional[
  1217. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1218. ] = None,
  1219. on_mouse_down: Optional[
  1220. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1221. ] = None,
  1222. on_mouse_enter: Optional[
  1223. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1224. ] = None,
  1225. on_mouse_leave: Optional[
  1226. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1227. ] = None,
  1228. on_mouse_move: Optional[
  1229. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1230. ] = None,
  1231. on_mouse_out: Optional[
  1232. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1233. ] = None,
  1234. on_mouse_over: Optional[
  1235. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1236. ] = None,
  1237. on_mouse_up: Optional[
  1238. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1239. ] = None,
  1240. on_scroll: Optional[
  1241. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1242. ] = None,
  1243. on_unmount: Optional[
  1244. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1245. ] = None,
  1246. **props,
  1247. ) -> "Option":
  1248. """Create the component.
  1249. Args:
  1250. *children: The children of the component.
  1251. disabled: Disables the option
  1252. label: Label for the option, if the text is not the label
  1253. selected: Indicates that the option is initially selected
  1254. value: Value to be sent as form data
  1255. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1256. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1257. content_editable: Indicates whether the element's content is editable.
  1258. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1259. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1260. draggable: Defines whether the element can be dragged.
  1261. enter_key_hint: Hints what media types the media element is able to play.
  1262. hidden: Defines whether the element is hidden.
  1263. input_mode: Defines the type of the element.
  1264. item_prop: Defines the name of the element for metadata purposes.
  1265. lang: Defines the language used in the element.
  1266. role: Defines the role of the element.
  1267. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1268. spell_check: Defines whether the element may be checked for spelling errors.
  1269. tab_index: Defines the position of the current element in the tabbing order.
  1270. title: Defines a tooltip for the element.
  1271. style: The style of the component.
  1272. key: A unique key for the component.
  1273. id: The id for the component.
  1274. class_name: The class name for the component.
  1275. autofocus: Whether the component should take the focus once the page is loaded
  1276. custom_attrs: custom attribute
  1277. **props: The props of the component.
  1278. Returns:
  1279. The component.
  1280. """
  1281. ...
  1282. class Output(BaseHTML):
  1283. @overload
  1284. @classmethod
  1285. def create( # type: ignore
  1286. cls,
  1287. *children,
  1288. html_for: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1289. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1290. name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1291. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1292. auto_capitalize: Optional[
  1293. Union[Var[Union[bool, int, str]], str, int, bool]
  1294. ] = None,
  1295. content_editable: Optional[
  1296. Union[Var[Union[bool, int, str]], str, int, bool]
  1297. ] = None,
  1298. context_menu: Optional[
  1299. Union[Var[Union[bool, int, str]], str, int, bool]
  1300. ] = None,
  1301. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1302. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1303. enter_key_hint: Optional[
  1304. Union[Var[Union[bool, int, str]], str, int, bool]
  1305. ] = None,
  1306. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1307. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1308. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1309. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1310. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1311. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1312. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1313. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1314. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1315. style: Optional[Style] = None,
  1316. key: Optional[Any] = None,
  1317. id: Optional[Any] = None,
  1318. class_name: Optional[Any] = None,
  1319. autofocus: Optional[bool] = None,
  1320. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  1321. on_blur: Optional[
  1322. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1323. ] = None,
  1324. on_click: Optional[
  1325. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1326. ] = None,
  1327. on_context_menu: Optional[
  1328. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1329. ] = None,
  1330. on_double_click: Optional[
  1331. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1332. ] = None,
  1333. on_focus: Optional[
  1334. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1335. ] = None,
  1336. on_mount: Optional[
  1337. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1338. ] = None,
  1339. on_mouse_down: Optional[
  1340. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1341. ] = None,
  1342. on_mouse_enter: Optional[
  1343. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1344. ] = None,
  1345. on_mouse_leave: Optional[
  1346. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1347. ] = None,
  1348. on_mouse_move: Optional[
  1349. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1350. ] = None,
  1351. on_mouse_out: Optional[
  1352. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1353. ] = None,
  1354. on_mouse_over: Optional[
  1355. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1356. ] = None,
  1357. on_mouse_up: Optional[
  1358. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1359. ] = None,
  1360. on_scroll: Optional[
  1361. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1362. ] = None,
  1363. on_unmount: Optional[
  1364. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1365. ] = None,
  1366. **props,
  1367. ) -> "Output":
  1368. """Create the component.
  1369. Args:
  1370. *children: The children of the component.
  1371. html_for: Associates the output with one or more elements (by their IDs)
  1372. form: Associates the output with a form (by id)
  1373. name: Name of the output element for form submission
  1374. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1375. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1376. content_editable: Indicates whether the element's content is editable.
  1377. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1378. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1379. draggable: Defines whether the element can be dragged.
  1380. enter_key_hint: Hints what media types the media element is able to play.
  1381. hidden: Defines whether the element is hidden.
  1382. input_mode: Defines the type of the element.
  1383. item_prop: Defines the name of the element for metadata purposes.
  1384. lang: Defines the language used in the element.
  1385. role: Defines the role of the element.
  1386. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1387. spell_check: Defines whether the element may be checked for spelling errors.
  1388. tab_index: Defines the position of the current element in the tabbing order.
  1389. title: Defines a tooltip for the element.
  1390. style: The style of the component.
  1391. key: A unique key for the component.
  1392. id: The id for the component.
  1393. class_name: The class name for the component.
  1394. autofocus: Whether the component should take the focus once the page is loaded
  1395. custom_attrs: custom attribute
  1396. **props: The props of the component.
  1397. Returns:
  1398. The component.
  1399. """
  1400. ...
  1401. class Progress(BaseHTML):
  1402. @overload
  1403. @classmethod
  1404. def create( # type: ignore
  1405. cls,
  1406. *children,
  1407. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1408. max: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1409. value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1410. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1411. auto_capitalize: Optional[
  1412. Union[Var[Union[bool, int, str]], str, int, bool]
  1413. ] = None,
  1414. content_editable: Optional[
  1415. Union[Var[Union[bool, int, str]], str, int, bool]
  1416. ] = None,
  1417. context_menu: Optional[
  1418. Union[Var[Union[bool, int, str]], str, int, bool]
  1419. ] = None,
  1420. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1421. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1422. enter_key_hint: Optional[
  1423. Union[Var[Union[bool, int, str]], str, int, bool]
  1424. ] = None,
  1425. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1426. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1427. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1428. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1429. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1430. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1431. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1432. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1433. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1434. style: Optional[Style] = None,
  1435. key: Optional[Any] = None,
  1436. id: Optional[Any] = None,
  1437. class_name: Optional[Any] = None,
  1438. autofocus: Optional[bool] = None,
  1439. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  1440. on_blur: Optional[
  1441. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1442. ] = None,
  1443. on_click: Optional[
  1444. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1445. ] = None,
  1446. on_context_menu: Optional[
  1447. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1448. ] = None,
  1449. on_double_click: Optional[
  1450. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1451. ] = None,
  1452. on_focus: Optional[
  1453. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1454. ] = None,
  1455. on_mount: Optional[
  1456. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1457. ] = None,
  1458. on_mouse_down: Optional[
  1459. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1460. ] = None,
  1461. on_mouse_enter: Optional[
  1462. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1463. ] = None,
  1464. on_mouse_leave: Optional[
  1465. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1466. ] = None,
  1467. on_mouse_move: Optional[
  1468. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1469. ] = None,
  1470. on_mouse_out: Optional[
  1471. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1472. ] = None,
  1473. on_mouse_over: Optional[
  1474. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1475. ] = None,
  1476. on_mouse_up: Optional[
  1477. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1478. ] = None,
  1479. on_scroll: Optional[
  1480. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1481. ] = None,
  1482. on_unmount: Optional[
  1483. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1484. ] = None,
  1485. **props,
  1486. ) -> "Progress":
  1487. """Create the component.
  1488. Args:
  1489. *children: The children of the component.
  1490. form: Associates the progress element with a form (by id)
  1491. max: Maximum value of the progress indicator
  1492. value: Current value of the progress indicator
  1493. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1494. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1495. content_editable: Indicates whether the element's content is editable.
  1496. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1497. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1498. draggable: Defines whether the element can be dragged.
  1499. enter_key_hint: Hints what media types the media element is able to play.
  1500. hidden: Defines whether the element is hidden.
  1501. input_mode: Defines the type of the element.
  1502. item_prop: Defines the name of the element for metadata purposes.
  1503. lang: Defines the language used in the element.
  1504. role: Defines the role of the element.
  1505. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1506. spell_check: Defines whether the element may be checked for spelling errors.
  1507. tab_index: Defines the position of the current element in the tabbing order.
  1508. title: Defines a tooltip for the element.
  1509. style: The style of the component.
  1510. key: A unique key for the component.
  1511. id: The id for the component.
  1512. class_name: The class name for the component.
  1513. autofocus: Whether the component should take the focus once the page is loaded
  1514. custom_attrs: custom attribute
  1515. **props: The props of the component.
  1516. Returns:
  1517. The component.
  1518. """
  1519. ...
  1520. class Select(BaseHTML):
  1521. @overload
  1522. @classmethod
  1523. def create( # type: ignore
  1524. cls,
  1525. *children,
  1526. auto_complete: Optional[
  1527. Union[Var[Union[bool, int, str]], str, int, bool]
  1528. ] = None,
  1529. auto_focus: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1530. disabled: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1531. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1532. multiple: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1533. name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1534. required: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1535. size: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1536. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1537. auto_capitalize: Optional[
  1538. Union[Var[Union[bool, int, str]], str, int, bool]
  1539. ] = None,
  1540. content_editable: Optional[
  1541. Union[Var[Union[bool, int, str]], str, int, bool]
  1542. ] = None,
  1543. context_menu: Optional[
  1544. Union[Var[Union[bool, int, str]], str, int, bool]
  1545. ] = None,
  1546. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1547. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1548. enter_key_hint: Optional[
  1549. Union[Var[Union[bool, int, str]], str, int, bool]
  1550. ] = None,
  1551. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1552. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1553. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1554. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1555. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1556. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1557. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1558. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1559. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1560. style: Optional[Style] = None,
  1561. key: Optional[Any] = None,
  1562. id: Optional[Any] = None,
  1563. class_name: Optional[Any] = None,
  1564. autofocus: Optional[bool] = None,
  1565. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  1566. on_blur: Optional[
  1567. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1568. ] = None,
  1569. on_change: Optional[
  1570. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1571. ] = None,
  1572. on_click: Optional[
  1573. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1574. ] = None,
  1575. on_context_menu: Optional[
  1576. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1577. ] = None,
  1578. on_double_click: Optional[
  1579. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1580. ] = None,
  1581. on_focus: Optional[
  1582. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1583. ] = None,
  1584. on_mount: Optional[
  1585. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1586. ] = None,
  1587. on_mouse_down: Optional[
  1588. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1589. ] = None,
  1590. on_mouse_enter: Optional[
  1591. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1592. ] = None,
  1593. on_mouse_leave: Optional[
  1594. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1595. ] = None,
  1596. on_mouse_move: Optional[
  1597. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1598. ] = None,
  1599. on_mouse_out: Optional[
  1600. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1601. ] = None,
  1602. on_mouse_over: Optional[
  1603. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1604. ] = None,
  1605. on_mouse_up: Optional[
  1606. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1607. ] = None,
  1608. on_scroll: Optional[
  1609. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1610. ] = None,
  1611. on_unmount: Optional[
  1612. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1613. ] = None,
  1614. **props,
  1615. ) -> "Select":
  1616. """Create the component.
  1617. Args:
  1618. *children: The children of the component.
  1619. auto_complete: Whether the form control should have autocomplete enabled
  1620. auto_focus: Automatically focuses the select when the page loads
  1621. disabled: Disables the select control
  1622. form: Associates the select with a form (by id)
  1623. multiple: Indicates that multiple options can be selected
  1624. name: Name of the select, used when submitting the form
  1625. required: Indicates that the select control must have a selected option
  1626. size: Number of visible options in a drop-down list
  1627. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1628. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1629. content_editable: Indicates whether the element's content is editable.
  1630. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1631. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1632. draggable: Defines whether the element can be dragged.
  1633. enter_key_hint: Hints what media types the media element is able to play.
  1634. hidden: Defines whether the element is hidden.
  1635. input_mode: Defines the type of the element.
  1636. item_prop: Defines the name of the element for metadata purposes.
  1637. lang: Defines the language used in the element.
  1638. role: Defines the role of the element.
  1639. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1640. spell_check: Defines whether the element may be checked for spelling errors.
  1641. tab_index: Defines the position of the current element in the tabbing order.
  1642. title: Defines a tooltip for the element.
  1643. style: The style of the component.
  1644. key: A unique key for the component.
  1645. id: The id for the component.
  1646. class_name: The class name for the component.
  1647. autofocus: Whether the component should take the focus once the page is loaded
  1648. custom_attrs: custom attribute
  1649. **props: The props of the component.
  1650. Returns:
  1651. The component.
  1652. """
  1653. ...
  1654. AUTO_HEIGHT_JS = '\nconst autoHeightOnInput = (e, is_enabled) => {\n if (is_enabled) {\n const el = e.target;\n el.style.overflowY = "scroll";\n el.style.height = "auto";\n el.style.height = (e.target.scrollHeight) + "px";\n if (el.form && !el.form.data_resize_on_reset) {\n el.form.addEventListener("reset", () => window.setTimeout(() => autoHeightOnInput(e, is_enabled), 0))\n el.form.data_resize_on_reset = true;\n }\n }\n}\n'
  1655. ENTER_KEY_SUBMIT_JS = "\nconst enterKeySubmitOnKeyDown = (e, is_enabled) => {\n if (is_enabled && e.which === 13 && !e.shiftKey) {\n e.preventDefault();\n if (!e.repeat) {\n if (e.target.form) {\n e.target.form.requestSubmit();\n }\n }\n }\n}\n"
  1656. class Textarea(BaseHTML):
  1657. @overload
  1658. @classmethod
  1659. def create( # type: ignore
  1660. cls,
  1661. *children,
  1662. auto_complete: Optional[
  1663. Union[Var[Union[bool, int, str]], str, int, bool]
  1664. ] = None,
  1665. auto_focus: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1666. auto_height: Optional[Union[Var[bool], bool]] = None,
  1667. cols: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1668. dirname: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1669. disabled: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1670. enter_key_submit: Optional[Union[Var[bool], bool]] = None,
  1671. form: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1672. max_length: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1673. min_length: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1674. name: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1675. placeholder: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1676. read_only: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1677. required: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1678. rows: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1679. value: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1680. wrap: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1681. access_key: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1682. auto_capitalize: Optional[
  1683. Union[Var[Union[bool, int, str]], str, int, bool]
  1684. ] = None,
  1685. content_editable: Optional[
  1686. Union[Var[Union[bool, int, str]], str, int, bool]
  1687. ] = None,
  1688. context_menu: Optional[
  1689. Union[Var[Union[bool, int, str]], str, int, bool]
  1690. ] = None,
  1691. dir: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1692. draggable: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1693. enter_key_hint: Optional[
  1694. Union[Var[Union[bool, int, str]], str, int, bool]
  1695. ] = None,
  1696. hidden: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1697. input_mode: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1698. item_prop: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1699. lang: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1700. role: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1701. slot: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1702. spell_check: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1703. tab_index: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1704. title: Optional[Union[Var[Union[bool, int, str]], str, int, bool]] = None,
  1705. style: Optional[Style] = None,
  1706. key: Optional[Any] = None,
  1707. id: Optional[Any] = None,
  1708. class_name: Optional[Any] = None,
  1709. autofocus: Optional[bool] = None,
  1710. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  1711. on_blur: Optional[
  1712. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1713. ] = None,
  1714. on_change: Optional[
  1715. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1716. ] = None,
  1717. on_click: Optional[
  1718. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1719. ] = None,
  1720. on_context_menu: Optional[
  1721. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1722. ] = None,
  1723. on_double_click: Optional[
  1724. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1725. ] = None,
  1726. on_focus: Optional[
  1727. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1728. ] = None,
  1729. on_key_down: Optional[
  1730. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1731. ] = None,
  1732. on_key_up: Optional[
  1733. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1734. ] = None,
  1735. on_mount: Optional[
  1736. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1737. ] = None,
  1738. on_mouse_down: Optional[
  1739. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1740. ] = None,
  1741. on_mouse_enter: Optional[
  1742. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1743. ] = None,
  1744. on_mouse_leave: Optional[
  1745. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1746. ] = None,
  1747. on_mouse_move: Optional[
  1748. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1749. ] = None,
  1750. on_mouse_out: Optional[
  1751. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1752. ] = None,
  1753. on_mouse_over: Optional[
  1754. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1755. ] = None,
  1756. on_mouse_up: Optional[
  1757. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1758. ] = None,
  1759. on_scroll: Optional[
  1760. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1761. ] = None,
  1762. on_unmount: Optional[
  1763. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  1764. ] = None,
  1765. **props,
  1766. ) -> "Textarea":
  1767. """Create the component.
  1768. Args:
  1769. *children: The children of the component.
  1770. auto_complete: Whether the form control should have autocomplete enabled
  1771. auto_focus: Automatically focuses the textarea when the page loads
  1772. auto_height: Automatically fit the content height to the text (use min-height with this prop)
  1773. cols: Visible width of the text control, in average character widths
  1774. dirname: Name part of the textarea to submit in 'dir' and 'name' pair when form is submitted
  1775. disabled: Disables the textarea
  1776. enter_key_submit: Enter key submits form (shift-enter adds new line)
  1777. form: Associates the textarea with a form (by id)
  1778. max_length: Maximum number of characters allowed in the textarea
  1779. min_length: Minimum number of characters required in the textarea
  1780. name: Name of the textarea, used when submitting the form
  1781. placeholder: Placeholder text in the textarea
  1782. read_only: Indicates whether the textarea is read-only
  1783. required: Indicates that the textarea is required
  1784. rows: Visible number of lines in the text control
  1785. value: The controlled value of the textarea, read only unless used with on_change
  1786. wrap: How the text in the textarea is to be wrapped when submitting the form
  1787. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1788. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1789. content_editable: Indicates whether the element's content is editable.
  1790. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1791. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1792. draggable: Defines whether the element can be dragged.
  1793. enter_key_hint: Hints what media types the media element is able to play.
  1794. hidden: Defines whether the element is hidden.
  1795. input_mode: Defines the type of the element.
  1796. item_prop: Defines the name of the element for metadata purposes.
  1797. lang: Defines the language used in the element.
  1798. role: Defines the role of the element.
  1799. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1800. spell_check: Defines whether the element may be checked for spelling errors.
  1801. tab_index: Defines the position of the current element in the tabbing order.
  1802. title: Defines a tooltip for the element.
  1803. style: The style of the component.
  1804. key: A unique key for the component.
  1805. id: The id for the component.
  1806. class_name: The class name for the component.
  1807. autofocus: Whether the component should take the focus once the page is loaded
  1808. custom_attrs: custom attribute
  1809. **props: The props of the component.
  1810. Returns:
  1811. The component.
  1812. """
  1813. ...
  1814. button = Button.create
  1815. fieldset = Fieldset.create
  1816. form = Form.create
  1817. input = Input.create
  1818. label = Label.create
  1819. legend = Legend.create
  1820. meter = Meter.create
  1821. optgroup = Optgroup.create
  1822. option = Option.create
  1823. output = Output.create
  1824. progress = Progress.create
  1825. select = Select.create
  1826. textarea = Textarea.create