forms.pyi 97 KB

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