other.pyi 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706
  1. """Stub file for reflex/components/el/elements/other.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Literal, Optional, overload
  6. from reflex.event import EventType
  7. from reflex.style import Style
  8. from reflex.vars.base import Var
  9. from .base import BaseHTML
  10. class Details(BaseHTML):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. open: Var[bool] | bool | None = None,
  17. access_key: Var[str] | str | None = None,
  18. auto_capitalize: Literal[
  19. "characters", "none", "off", "on", "sentences", "words"
  20. ]
  21. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  22. | None = None,
  23. content_editable: Literal["inherit", "plaintext-only", False, True]
  24. | Var[Literal["inherit", "plaintext-only", False, True]]
  25. | None = None,
  26. context_menu: Var[str] | str | None = None,
  27. dir: Var[str] | str | None = None,
  28. draggable: Var[bool] | bool | None = None,
  29. enter_key_hint: Literal[
  30. "done", "enter", "go", "next", "previous", "search", "send"
  31. ]
  32. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  33. | None = None,
  34. hidden: Var[bool] | bool | None = None,
  35. input_mode: Literal[
  36. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  37. ]
  38. | Var[
  39. Literal[
  40. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  41. ]
  42. ]
  43. | None = None,
  44. item_prop: Var[str] | str | None = None,
  45. lang: Var[str] | str | None = None,
  46. role: Literal[
  47. "alert",
  48. "alertdialog",
  49. "application",
  50. "article",
  51. "banner",
  52. "button",
  53. "cell",
  54. "checkbox",
  55. "columnheader",
  56. "combobox",
  57. "complementary",
  58. "contentinfo",
  59. "definition",
  60. "dialog",
  61. "directory",
  62. "document",
  63. "feed",
  64. "figure",
  65. "form",
  66. "grid",
  67. "gridcell",
  68. "group",
  69. "heading",
  70. "img",
  71. "link",
  72. "list",
  73. "listbox",
  74. "listitem",
  75. "log",
  76. "main",
  77. "marquee",
  78. "math",
  79. "menu",
  80. "menubar",
  81. "menuitem",
  82. "menuitemcheckbox",
  83. "menuitemradio",
  84. "navigation",
  85. "none",
  86. "note",
  87. "option",
  88. "presentation",
  89. "progressbar",
  90. "radio",
  91. "radiogroup",
  92. "region",
  93. "row",
  94. "rowgroup",
  95. "rowheader",
  96. "scrollbar",
  97. "search",
  98. "searchbox",
  99. "separator",
  100. "slider",
  101. "spinbutton",
  102. "status",
  103. "switch",
  104. "tab",
  105. "table",
  106. "tablist",
  107. "tabpanel",
  108. "term",
  109. "textbox",
  110. "timer",
  111. "toolbar",
  112. "tooltip",
  113. "tree",
  114. "treegrid",
  115. "treeitem",
  116. ]
  117. | Var[
  118. Literal[
  119. "alert",
  120. "alertdialog",
  121. "application",
  122. "article",
  123. "banner",
  124. "button",
  125. "cell",
  126. "checkbox",
  127. "columnheader",
  128. "combobox",
  129. "complementary",
  130. "contentinfo",
  131. "definition",
  132. "dialog",
  133. "directory",
  134. "document",
  135. "feed",
  136. "figure",
  137. "form",
  138. "grid",
  139. "gridcell",
  140. "group",
  141. "heading",
  142. "img",
  143. "link",
  144. "list",
  145. "listbox",
  146. "listitem",
  147. "log",
  148. "main",
  149. "marquee",
  150. "math",
  151. "menu",
  152. "menubar",
  153. "menuitem",
  154. "menuitemcheckbox",
  155. "menuitemradio",
  156. "navigation",
  157. "none",
  158. "note",
  159. "option",
  160. "presentation",
  161. "progressbar",
  162. "radio",
  163. "radiogroup",
  164. "region",
  165. "row",
  166. "rowgroup",
  167. "rowheader",
  168. "scrollbar",
  169. "search",
  170. "searchbox",
  171. "separator",
  172. "slider",
  173. "spinbutton",
  174. "status",
  175. "switch",
  176. "tab",
  177. "table",
  178. "tablist",
  179. "tabpanel",
  180. "term",
  181. "textbox",
  182. "timer",
  183. "toolbar",
  184. "tooltip",
  185. "tree",
  186. "treegrid",
  187. "treeitem",
  188. ]
  189. ]
  190. | None = None,
  191. slot: Var[str] | str | None = None,
  192. spell_check: Var[bool] | bool | None = None,
  193. tab_index: Var[int] | int | None = None,
  194. title: Var[str] | str | None = None,
  195. style: Style | None = None,
  196. key: Any | None = None,
  197. id: Any | None = None,
  198. class_name: Any | None = None,
  199. autofocus: bool | None = None,
  200. custom_attrs: dict[str, Var | Any] | None = None,
  201. on_blur: Optional[EventType[()]] = None,
  202. on_click: Optional[EventType[()]] = None,
  203. on_context_menu: Optional[EventType[()]] = None,
  204. on_double_click: Optional[EventType[()]] = None,
  205. on_focus: Optional[EventType[()]] = None,
  206. on_mount: Optional[EventType[()]] = None,
  207. on_mouse_down: Optional[EventType[()]] = None,
  208. on_mouse_enter: Optional[EventType[()]] = None,
  209. on_mouse_leave: Optional[EventType[()]] = None,
  210. on_mouse_move: Optional[EventType[()]] = None,
  211. on_mouse_out: Optional[EventType[()]] = None,
  212. on_mouse_over: Optional[EventType[()]] = None,
  213. on_mouse_up: Optional[EventType[()]] = None,
  214. on_scroll: Optional[EventType[()]] = None,
  215. on_unmount: Optional[EventType[()]] = None,
  216. **props,
  217. ) -> "Details":
  218. """Create the component.
  219. Args:
  220. *children: The children of the component.
  221. open: Indicates whether the details will be visible (expanded) to the user
  222. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  223. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  224. content_editable: Indicates whether the element's content is editable.
  225. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  226. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  227. draggable: Defines whether the element can be dragged.
  228. enter_key_hint: Hints what media types the media element is able to play.
  229. hidden: Defines whether the element is hidden.
  230. input_mode: Defines the type of the element.
  231. item_prop: Defines the name of the element for metadata purposes.
  232. lang: Defines the language used in the element.
  233. role: Defines the role of the element.
  234. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  235. spell_check: Defines whether the element may be checked for spelling errors.
  236. tab_index: Defines the position of the current element in the tabbing order.
  237. title: Defines a tooltip for the element.
  238. style: The style of the component.
  239. key: A unique key for the component.
  240. id: The id for the component.
  241. class_name: The class name for the component.
  242. autofocus: Whether the component should take the focus once the page is loaded
  243. custom_attrs: custom attribute
  244. **props: The props of the component.
  245. Returns:
  246. The component.
  247. """
  248. ...
  249. class Dialog(BaseHTML):
  250. @overload
  251. @classmethod
  252. def create( # type: ignore
  253. cls,
  254. *children,
  255. open: Var[bool] | bool | None = None,
  256. access_key: Var[str] | str | None = None,
  257. auto_capitalize: Literal[
  258. "characters", "none", "off", "on", "sentences", "words"
  259. ]
  260. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  261. | None = None,
  262. content_editable: Literal["inherit", "plaintext-only", False, True]
  263. | Var[Literal["inherit", "plaintext-only", False, True]]
  264. | None = None,
  265. context_menu: Var[str] | str | None = None,
  266. dir: Var[str] | str | None = None,
  267. draggable: Var[bool] | bool | None = None,
  268. enter_key_hint: Literal[
  269. "done", "enter", "go", "next", "previous", "search", "send"
  270. ]
  271. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  272. | None = None,
  273. hidden: Var[bool] | bool | None = None,
  274. input_mode: Literal[
  275. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  276. ]
  277. | Var[
  278. Literal[
  279. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  280. ]
  281. ]
  282. | None = None,
  283. item_prop: Var[str] | str | None = None,
  284. lang: Var[str] | str | None = None,
  285. role: Literal[
  286. "alert",
  287. "alertdialog",
  288. "application",
  289. "article",
  290. "banner",
  291. "button",
  292. "cell",
  293. "checkbox",
  294. "columnheader",
  295. "combobox",
  296. "complementary",
  297. "contentinfo",
  298. "definition",
  299. "dialog",
  300. "directory",
  301. "document",
  302. "feed",
  303. "figure",
  304. "form",
  305. "grid",
  306. "gridcell",
  307. "group",
  308. "heading",
  309. "img",
  310. "link",
  311. "list",
  312. "listbox",
  313. "listitem",
  314. "log",
  315. "main",
  316. "marquee",
  317. "math",
  318. "menu",
  319. "menubar",
  320. "menuitem",
  321. "menuitemcheckbox",
  322. "menuitemradio",
  323. "navigation",
  324. "none",
  325. "note",
  326. "option",
  327. "presentation",
  328. "progressbar",
  329. "radio",
  330. "radiogroup",
  331. "region",
  332. "row",
  333. "rowgroup",
  334. "rowheader",
  335. "scrollbar",
  336. "search",
  337. "searchbox",
  338. "separator",
  339. "slider",
  340. "spinbutton",
  341. "status",
  342. "switch",
  343. "tab",
  344. "table",
  345. "tablist",
  346. "tabpanel",
  347. "term",
  348. "textbox",
  349. "timer",
  350. "toolbar",
  351. "tooltip",
  352. "tree",
  353. "treegrid",
  354. "treeitem",
  355. ]
  356. | Var[
  357. Literal[
  358. "alert",
  359. "alertdialog",
  360. "application",
  361. "article",
  362. "banner",
  363. "button",
  364. "cell",
  365. "checkbox",
  366. "columnheader",
  367. "combobox",
  368. "complementary",
  369. "contentinfo",
  370. "definition",
  371. "dialog",
  372. "directory",
  373. "document",
  374. "feed",
  375. "figure",
  376. "form",
  377. "grid",
  378. "gridcell",
  379. "group",
  380. "heading",
  381. "img",
  382. "link",
  383. "list",
  384. "listbox",
  385. "listitem",
  386. "log",
  387. "main",
  388. "marquee",
  389. "math",
  390. "menu",
  391. "menubar",
  392. "menuitem",
  393. "menuitemcheckbox",
  394. "menuitemradio",
  395. "navigation",
  396. "none",
  397. "note",
  398. "option",
  399. "presentation",
  400. "progressbar",
  401. "radio",
  402. "radiogroup",
  403. "region",
  404. "row",
  405. "rowgroup",
  406. "rowheader",
  407. "scrollbar",
  408. "search",
  409. "searchbox",
  410. "separator",
  411. "slider",
  412. "spinbutton",
  413. "status",
  414. "switch",
  415. "tab",
  416. "table",
  417. "tablist",
  418. "tabpanel",
  419. "term",
  420. "textbox",
  421. "timer",
  422. "toolbar",
  423. "tooltip",
  424. "tree",
  425. "treegrid",
  426. "treeitem",
  427. ]
  428. ]
  429. | None = None,
  430. slot: Var[str] | str | None = None,
  431. spell_check: Var[bool] | bool | None = None,
  432. tab_index: Var[int] | int | None = None,
  433. title: Var[str] | str | None = None,
  434. style: Style | None = None,
  435. key: Any | None = None,
  436. id: Any | None = None,
  437. class_name: Any | None = None,
  438. autofocus: bool | None = None,
  439. custom_attrs: dict[str, Var | Any] | None = None,
  440. on_blur: Optional[EventType[()]] = None,
  441. on_click: Optional[EventType[()]] = None,
  442. on_context_menu: Optional[EventType[()]] = None,
  443. on_double_click: Optional[EventType[()]] = None,
  444. on_focus: Optional[EventType[()]] = None,
  445. on_mount: Optional[EventType[()]] = None,
  446. on_mouse_down: Optional[EventType[()]] = None,
  447. on_mouse_enter: Optional[EventType[()]] = None,
  448. on_mouse_leave: Optional[EventType[()]] = None,
  449. on_mouse_move: Optional[EventType[()]] = None,
  450. on_mouse_out: Optional[EventType[()]] = None,
  451. on_mouse_over: Optional[EventType[()]] = None,
  452. on_mouse_up: Optional[EventType[()]] = None,
  453. on_scroll: Optional[EventType[()]] = None,
  454. on_unmount: Optional[EventType[()]] = None,
  455. **props,
  456. ) -> "Dialog":
  457. """Create the component.
  458. Args:
  459. *children: The children of the component.
  460. open: Indicates whether the dialog is active and can be interacted with
  461. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  462. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  463. content_editable: Indicates whether the element's content is editable.
  464. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  465. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  466. draggable: Defines whether the element can be dragged.
  467. enter_key_hint: Hints what media types the media element is able to play.
  468. hidden: Defines whether the element is hidden.
  469. input_mode: Defines the type of the element.
  470. item_prop: Defines the name of the element for metadata purposes.
  471. lang: Defines the language used in the element.
  472. role: Defines the role of the element.
  473. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  474. spell_check: Defines whether the element may be checked for spelling errors.
  475. tab_index: Defines the position of the current element in the tabbing order.
  476. title: Defines a tooltip for the element.
  477. style: The style of the component.
  478. key: A unique key for the component.
  479. id: The id for the component.
  480. class_name: The class name for the component.
  481. autofocus: Whether the component should take the focus once the page is loaded
  482. custom_attrs: custom attribute
  483. **props: The props of the component.
  484. Returns:
  485. The component.
  486. """
  487. ...
  488. class Summary(BaseHTML):
  489. @overload
  490. @classmethod
  491. def create( # type: ignore
  492. cls,
  493. *children,
  494. access_key: Var[str] | str | None = None,
  495. auto_capitalize: Literal[
  496. "characters", "none", "off", "on", "sentences", "words"
  497. ]
  498. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  499. | None = None,
  500. content_editable: Literal["inherit", "plaintext-only", False, True]
  501. | Var[Literal["inherit", "plaintext-only", False, True]]
  502. | None = None,
  503. context_menu: Var[str] | str | None = None,
  504. dir: Var[str] | str | None = None,
  505. draggable: Var[bool] | bool | None = None,
  506. enter_key_hint: Literal[
  507. "done", "enter", "go", "next", "previous", "search", "send"
  508. ]
  509. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  510. | None = None,
  511. hidden: Var[bool] | bool | None = None,
  512. input_mode: Literal[
  513. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  514. ]
  515. | Var[
  516. Literal[
  517. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  518. ]
  519. ]
  520. | None = None,
  521. item_prop: Var[str] | str | None = None,
  522. lang: Var[str] | str | None = None,
  523. role: Literal[
  524. "alert",
  525. "alertdialog",
  526. "application",
  527. "article",
  528. "banner",
  529. "button",
  530. "cell",
  531. "checkbox",
  532. "columnheader",
  533. "combobox",
  534. "complementary",
  535. "contentinfo",
  536. "definition",
  537. "dialog",
  538. "directory",
  539. "document",
  540. "feed",
  541. "figure",
  542. "form",
  543. "grid",
  544. "gridcell",
  545. "group",
  546. "heading",
  547. "img",
  548. "link",
  549. "list",
  550. "listbox",
  551. "listitem",
  552. "log",
  553. "main",
  554. "marquee",
  555. "math",
  556. "menu",
  557. "menubar",
  558. "menuitem",
  559. "menuitemcheckbox",
  560. "menuitemradio",
  561. "navigation",
  562. "none",
  563. "note",
  564. "option",
  565. "presentation",
  566. "progressbar",
  567. "radio",
  568. "radiogroup",
  569. "region",
  570. "row",
  571. "rowgroup",
  572. "rowheader",
  573. "scrollbar",
  574. "search",
  575. "searchbox",
  576. "separator",
  577. "slider",
  578. "spinbutton",
  579. "status",
  580. "switch",
  581. "tab",
  582. "table",
  583. "tablist",
  584. "tabpanel",
  585. "term",
  586. "textbox",
  587. "timer",
  588. "toolbar",
  589. "tooltip",
  590. "tree",
  591. "treegrid",
  592. "treeitem",
  593. ]
  594. | Var[
  595. Literal[
  596. "alert",
  597. "alertdialog",
  598. "application",
  599. "article",
  600. "banner",
  601. "button",
  602. "cell",
  603. "checkbox",
  604. "columnheader",
  605. "combobox",
  606. "complementary",
  607. "contentinfo",
  608. "definition",
  609. "dialog",
  610. "directory",
  611. "document",
  612. "feed",
  613. "figure",
  614. "form",
  615. "grid",
  616. "gridcell",
  617. "group",
  618. "heading",
  619. "img",
  620. "link",
  621. "list",
  622. "listbox",
  623. "listitem",
  624. "log",
  625. "main",
  626. "marquee",
  627. "math",
  628. "menu",
  629. "menubar",
  630. "menuitem",
  631. "menuitemcheckbox",
  632. "menuitemradio",
  633. "navigation",
  634. "none",
  635. "note",
  636. "option",
  637. "presentation",
  638. "progressbar",
  639. "radio",
  640. "radiogroup",
  641. "region",
  642. "row",
  643. "rowgroup",
  644. "rowheader",
  645. "scrollbar",
  646. "search",
  647. "searchbox",
  648. "separator",
  649. "slider",
  650. "spinbutton",
  651. "status",
  652. "switch",
  653. "tab",
  654. "table",
  655. "tablist",
  656. "tabpanel",
  657. "term",
  658. "textbox",
  659. "timer",
  660. "toolbar",
  661. "tooltip",
  662. "tree",
  663. "treegrid",
  664. "treeitem",
  665. ]
  666. ]
  667. | None = None,
  668. slot: Var[str] | str | None = None,
  669. spell_check: Var[bool] | bool | None = None,
  670. tab_index: Var[int] | int | None = None,
  671. title: Var[str] | str | None = None,
  672. style: Style | None = None,
  673. key: Any | None = None,
  674. id: Any | None = None,
  675. class_name: Any | None = None,
  676. autofocus: bool | None = None,
  677. custom_attrs: dict[str, Var | Any] | None = None,
  678. on_blur: Optional[EventType[()]] = None,
  679. on_click: Optional[EventType[()]] = None,
  680. on_context_menu: Optional[EventType[()]] = None,
  681. on_double_click: Optional[EventType[()]] = None,
  682. on_focus: Optional[EventType[()]] = None,
  683. on_mount: Optional[EventType[()]] = None,
  684. on_mouse_down: Optional[EventType[()]] = None,
  685. on_mouse_enter: Optional[EventType[()]] = None,
  686. on_mouse_leave: Optional[EventType[()]] = None,
  687. on_mouse_move: Optional[EventType[()]] = None,
  688. on_mouse_out: Optional[EventType[()]] = None,
  689. on_mouse_over: Optional[EventType[()]] = None,
  690. on_mouse_up: Optional[EventType[()]] = None,
  691. on_scroll: Optional[EventType[()]] = None,
  692. on_unmount: Optional[EventType[()]] = None,
  693. **props,
  694. ) -> "Summary":
  695. """Create the component.
  696. Args:
  697. *children: The children of the component.
  698. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  699. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  700. content_editable: Indicates whether the element's content is editable.
  701. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  702. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  703. draggable: Defines whether the element can be dragged.
  704. enter_key_hint: Hints what media types the media element is able to play.
  705. hidden: Defines whether the element is hidden.
  706. input_mode: Defines the type of the element.
  707. item_prop: Defines the name of the element for metadata purposes.
  708. lang: Defines the language used in the element.
  709. role: Defines the role of the element.
  710. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  711. spell_check: Defines whether the element may be checked for spelling errors.
  712. tab_index: Defines the position of the current element in the tabbing order.
  713. title: Defines a tooltip for the element.
  714. style: The style of the component.
  715. key: A unique key for the component.
  716. id: The id for the component.
  717. class_name: The class name for the component.
  718. autofocus: Whether the component should take the focus once the page is loaded
  719. custom_attrs: custom attribute
  720. **props: The props of the component.
  721. Returns:
  722. The component.
  723. """
  724. ...
  725. class Slot(BaseHTML):
  726. @overload
  727. @classmethod
  728. def create( # type: ignore
  729. cls,
  730. *children,
  731. access_key: Var[str] | str | None = None,
  732. auto_capitalize: Literal[
  733. "characters", "none", "off", "on", "sentences", "words"
  734. ]
  735. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  736. | None = None,
  737. content_editable: Literal["inherit", "plaintext-only", False, True]
  738. | Var[Literal["inherit", "plaintext-only", False, True]]
  739. | None = None,
  740. context_menu: Var[str] | str | None = None,
  741. dir: Var[str] | str | None = None,
  742. draggable: Var[bool] | bool | None = None,
  743. enter_key_hint: Literal[
  744. "done", "enter", "go", "next", "previous", "search", "send"
  745. ]
  746. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  747. | None = None,
  748. hidden: Var[bool] | bool | None = None,
  749. input_mode: Literal[
  750. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  751. ]
  752. | Var[
  753. Literal[
  754. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  755. ]
  756. ]
  757. | None = None,
  758. item_prop: Var[str] | str | None = None,
  759. lang: Var[str] | str | None = None,
  760. role: Literal[
  761. "alert",
  762. "alertdialog",
  763. "application",
  764. "article",
  765. "banner",
  766. "button",
  767. "cell",
  768. "checkbox",
  769. "columnheader",
  770. "combobox",
  771. "complementary",
  772. "contentinfo",
  773. "definition",
  774. "dialog",
  775. "directory",
  776. "document",
  777. "feed",
  778. "figure",
  779. "form",
  780. "grid",
  781. "gridcell",
  782. "group",
  783. "heading",
  784. "img",
  785. "link",
  786. "list",
  787. "listbox",
  788. "listitem",
  789. "log",
  790. "main",
  791. "marquee",
  792. "math",
  793. "menu",
  794. "menubar",
  795. "menuitem",
  796. "menuitemcheckbox",
  797. "menuitemradio",
  798. "navigation",
  799. "none",
  800. "note",
  801. "option",
  802. "presentation",
  803. "progressbar",
  804. "radio",
  805. "radiogroup",
  806. "region",
  807. "row",
  808. "rowgroup",
  809. "rowheader",
  810. "scrollbar",
  811. "search",
  812. "searchbox",
  813. "separator",
  814. "slider",
  815. "spinbutton",
  816. "status",
  817. "switch",
  818. "tab",
  819. "table",
  820. "tablist",
  821. "tabpanel",
  822. "term",
  823. "textbox",
  824. "timer",
  825. "toolbar",
  826. "tooltip",
  827. "tree",
  828. "treegrid",
  829. "treeitem",
  830. ]
  831. | Var[
  832. Literal[
  833. "alert",
  834. "alertdialog",
  835. "application",
  836. "article",
  837. "banner",
  838. "button",
  839. "cell",
  840. "checkbox",
  841. "columnheader",
  842. "combobox",
  843. "complementary",
  844. "contentinfo",
  845. "definition",
  846. "dialog",
  847. "directory",
  848. "document",
  849. "feed",
  850. "figure",
  851. "form",
  852. "grid",
  853. "gridcell",
  854. "group",
  855. "heading",
  856. "img",
  857. "link",
  858. "list",
  859. "listbox",
  860. "listitem",
  861. "log",
  862. "main",
  863. "marquee",
  864. "math",
  865. "menu",
  866. "menubar",
  867. "menuitem",
  868. "menuitemcheckbox",
  869. "menuitemradio",
  870. "navigation",
  871. "none",
  872. "note",
  873. "option",
  874. "presentation",
  875. "progressbar",
  876. "radio",
  877. "radiogroup",
  878. "region",
  879. "row",
  880. "rowgroup",
  881. "rowheader",
  882. "scrollbar",
  883. "search",
  884. "searchbox",
  885. "separator",
  886. "slider",
  887. "spinbutton",
  888. "status",
  889. "switch",
  890. "tab",
  891. "table",
  892. "tablist",
  893. "tabpanel",
  894. "term",
  895. "textbox",
  896. "timer",
  897. "toolbar",
  898. "tooltip",
  899. "tree",
  900. "treegrid",
  901. "treeitem",
  902. ]
  903. ]
  904. | None = None,
  905. slot: Var[str] | str | None = None,
  906. spell_check: Var[bool] | bool | None = None,
  907. tab_index: Var[int] | int | None = None,
  908. title: Var[str] | str | None = None,
  909. style: Style | None = None,
  910. key: Any | None = None,
  911. id: Any | None = None,
  912. class_name: Any | None = None,
  913. autofocus: bool | None = None,
  914. custom_attrs: dict[str, Var | Any] | None = None,
  915. on_blur: Optional[EventType[()]] = None,
  916. on_click: Optional[EventType[()]] = None,
  917. on_context_menu: Optional[EventType[()]] = None,
  918. on_double_click: Optional[EventType[()]] = None,
  919. on_focus: Optional[EventType[()]] = None,
  920. on_mount: Optional[EventType[()]] = None,
  921. on_mouse_down: Optional[EventType[()]] = None,
  922. on_mouse_enter: Optional[EventType[()]] = None,
  923. on_mouse_leave: Optional[EventType[()]] = None,
  924. on_mouse_move: Optional[EventType[()]] = None,
  925. on_mouse_out: Optional[EventType[()]] = None,
  926. on_mouse_over: Optional[EventType[()]] = None,
  927. on_mouse_up: Optional[EventType[()]] = None,
  928. on_scroll: Optional[EventType[()]] = None,
  929. on_unmount: Optional[EventType[()]] = None,
  930. **props,
  931. ) -> "Slot":
  932. """Create the component.
  933. Args:
  934. *children: The children of the component.
  935. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  936. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  937. content_editable: Indicates whether the element's content is editable.
  938. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  939. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  940. draggable: Defines whether the element can be dragged.
  941. enter_key_hint: Hints what media types the media element is able to play.
  942. hidden: Defines whether the element is hidden.
  943. input_mode: Defines the type of the element.
  944. item_prop: Defines the name of the element for metadata purposes.
  945. lang: Defines the language used in the element.
  946. role: Defines the role of the element.
  947. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  948. spell_check: Defines whether the element may be checked for spelling errors.
  949. tab_index: Defines the position of the current element in the tabbing order.
  950. title: Defines a tooltip for the element.
  951. style: The style of the component.
  952. key: A unique key for the component.
  953. id: The id for the component.
  954. class_name: The class name for the component.
  955. autofocus: Whether the component should take the focus once the page is loaded
  956. custom_attrs: custom attribute
  957. **props: The props of the component.
  958. Returns:
  959. The component.
  960. """
  961. ...
  962. class Template(BaseHTML):
  963. @overload
  964. @classmethod
  965. def create( # type: ignore
  966. cls,
  967. *children,
  968. access_key: Var[str] | str | None = None,
  969. auto_capitalize: Literal[
  970. "characters", "none", "off", "on", "sentences", "words"
  971. ]
  972. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  973. | None = None,
  974. content_editable: Literal["inherit", "plaintext-only", False, True]
  975. | Var[Literal["inherit", "plaintext-only", False, True]]
  976. | None = None,
  977. context_menu: Var[str] | str | None = None,
  978. dir: Var[str] | str | None = None,
  979. draggable: Var[bool] | bool | None = None,
  980. enter_key_hint: Literal[
  981. "done", "enter", "go", "next", "previous", "search", "send"
  982. ]
  983. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  984. | None = None,
  985. hidden: Var[bool] | bool | None = None,
  986. input_mode: Literal[
  987. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  988. ]
  989. | Var[
  990. Literal[
  991. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  992. ]
  993. ]
  994. | None = None,
  995. item_prop: Var[str] | str | None = None,
  996. lang: Var[str] | str | None = None,
  997. role: Literal[
  998. "alert",
  999. "alertdialog",
  1000. "application",
  1001. "article",
  1002. "banner",
  1003. "button",
  1004. "cell",
  1005. "checkbox",
  1006. "columnheader",
  1007. "combobox",
  1008. "complementary",
  1009. "contentinfo",
  1010. "definition",
  1011. "dialog",
  1012. "directory",
  1013. "document",
  1014. "feed",
  1015. "figure",
  1016. "form",
  1017. "grid",
  1018. "gridcell",
  1019. "group",
  1020. "heading",
  1021. "img",
  1022. "link",
  1023. "list",
  1024. "listbox",
  1025. "listitem",
  1026. "log",
  1027. "main",
  1028. "marquee",
  1029. "math",
  1030. "menu",
  1031. "menubar",
  1032. "menuitem",
  1033. "menuitemcheckbox",
  1034. "menuitemradio",
  1035. "navigation",
  1036. "none",
  1037. "note",
  1038. "option",
  1039. "presentation",
  1040. "progressbar",
  1041. "radio",
  1042. "radiogroup",
  1043. "region",
  1044. "row",
  1045. "rowgroup",
  1046. "rowheader",
  1047. "scrollbar",
  1048. "search",
  1049. "searchbox",
  1050. "separator",
  1051. "slider",
  1052. "spinbutton",
  1053. "status",
  1054. "switch",
  1055. "tab",
  1056. "table",
  1057. "tablist",
  1058. "tabpanel",
  1059. "term",
  1060. "textbox",
  1061. "timer",
  1062. "toolbar",
  1063. "tooltip",
  1064. "tree",
  1065. "treegrid",
  1066. "treeitem",
  1067. ]
  1068. | Var[
  1069. Literal[
  1070. "alert",
  1071. "alertdialog",
  1072. "application",
  1073. "article",
  1074. "banner",
  1075. "button",
  1076. "cell",
  1077. "checkbox",
  1078. "columnheader",
  1079. "combobox",
  1080. "complementary",
  1081. "contentinfo",
  1082. "definition",
  1083. "dialog",
  1084. "directory",
  1085. "document",
  1086. "feed",
  1087. "figure",
  1088. "form",
  1089. "grid",
  1090. "gridcell",
  1091. "group",
  1092. "heading",
  1093. "img",
  1094. "link",
  1095. "list",
  1096. "listbox",
  1097. "listitem",
  1098. "log",
  1099. "main",
  1100. "marquee",
  1101. "math",
  1102. "menu",
  1103. "menubar",
  1104. "menuitem",
  1105. "menuitemcheckbox",
  1106. "menuitemradio",
  1107. "navigation",
  1108. "none",
  1109. "note",
  1110. "option",
  1111. "presentation",
  1112. "progressbar",
  1113. "radio",
  1114. "radiogroup",
  1115. "region",
  1116. "row",
  1117. "rowgroup",
  1118. "rowheader",
  1119. "scrollbar",
  1120. "search",
  1121. "searchbox",
  1122. "separator",
  1123. "slider",
  1124. "spinbutton",
  1125. "status",
  1126. "switch",
  1127. "tab",
  1128. "table",
  1129. "tablist",
  1130. "tabpanel",
  1131. "term",
  1132. "textbox",
  1133. "timer",
  1134. "toolbar",
  1135. "tooltip",
  1136. "tree",
  1137. "treegrid",
  1138. "treeitem",
  1139. ]
  1140. ]
  1141. | None = None,
  1142. slot: Var[str] | str | None = None,
  1143. spell_check: Var[bool] | bool | None = None,
  1144. tab_index: Var[int] | int | None = None,
  1145. title: Var[str] | str | None = None,
  1146. style: Style | None = None,
  1147. key: Any | None = None,
  1148. id: Any | None = None,
  1149. class_name: Any | None = None,
  1150. autofocus: bool | None = None,
  1151. custom_attrs: dict[str, Var | Any] | None = None,
  1152. on_blur: Optional[EventType[()]] = None,
  1153. on_click: Optional[EventType[()]] = None,
  1154. on_context_menu: Optional[EventType[()]] = None,
  1155. on_double_click: Optional[EventType[()]] = None,
  1156. on_focus: Optional[EventType[()]] = None,
  1157. on_mount: Optional[EventType[()]] = None,
  1158. on_mouse_down: Optional[EventType[()]] = None,
  1159. on_mouse_enter: Optional[EventType[()]] = None,
  1160. on_mouse_leave: Optional[EventType[()]] = None,
  1161. on_mouse_move: Optional[EventType[()]] = None,
  1162. on_mouse_out: Optional[EventType[()]] = None,
  1163. on_mouse_over: Optional[EventType[()]] = None,
  1164. on_mouse_up: Optional[EventType[()]] = None,
  1165. on_scroll: Optional[EventType[()]] = None,
  1166. on_unmount: Optional[EventType[()]] = None,
  1167. **props,
  1168. ) -> "Template":
  1169. """Create the component.
  1170. Args:
  1171. *children: The children of the component.
  1172. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1173. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1174. content_editable: Indicates whether the element's content is editable.
  1175. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1176. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1177. draggable: Defines whether the element can be dragged.
  1178. enter_key_hint: Hints what media types the media element is able to play.
  1179. hidden: Defines whether the element is hidden.
  1180. input_mode: Defines the type of the element.
  1181. item_prop: Defines the name of the element for metadata purposes.
  1182. lang: Defines the language used in the element.
  1183. role: Defines the role of the element.
  1184. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1185. spell_check: Defines whether the element may be checked for spelling errors.
  1186. tab_index: Defines the position of the current element in the tabbing order.
  1187. title: Defines a tooltip for the element.
  1188. style: The style of the component.
  1189. key: A unique key for the component.
  1190. id: The id for the component.
  1191. class_name: The class name for the component.
  1192. autofocus: Whether the component should take the focus once the page is loaded
  1193. custom_attrs: custom attribute
  1194. **props: The props of the component.
  1195. Returns:
  1196. The component.
  1197. """
  1198. ...
  1199. class Math(BaseHTML):
  1200. @overload
  1201. @classmethod
  1202. def create( # type: ignore
  1203. cls,
  1204. *children,
  1205. access_key: Var[str] | str | None = None,
  1206. auto_capitalize: Literal[
  1207. "characters", "none", "off", "on", "sentences", "words"
  1208. ]
  1209. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  1210. | None = None,
  1211. content_editable: Literal["inherit", "plaintext-only", False, True]
  1212. | Var[Literal["inherit", "plaintext-only", False, True]]
  1213. | None = None,
  1214. context_menu: Var[str] | str | None = None,
  1215. dir: Var[str] | str | None = None,
  1216. draggable: Var[bool] | bool | None = None,
  1217. enter_key_hint: Literal[
  1218. "done", "enter", "go", "next", "previous", "search", "send"
  1219. ]
  1220. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  1221. | None = None,
  1222. hidden: Var[bool] | bool | None = None,
  1223. input_mode: Literal[
  1224. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1225. ]
  1226. | Var[
  1227. Literal[
  1228. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1229. ]
  1230. ]
  1231. | None = None,
  1232. item_prop: Var[str] | str | None = None,
  1233. lang: Var[str] | str | None = None,
  1234. role: Literal[
  1235. "alert",
  1236. "alertdialog",
  1237. "application",
  1238. "article",
  1239. "banner",
  1240. "button",
  1241. "cell",
  1242. "checkbox",
  1243. "columnheader",
  1244. "combobox",
  1245. "complementary",
  1246. "contentinfo",
  1247. "definition",
  1248. "dialog",
  1249. "directory",
  1250. "document",
  1251. "feed",
  1252. "figure",
  1253. "form",
  1254. "grid",
  1255. "gridcell",
  1256. "group",
  1257. "heading",
  1258. "img",
  1259. "link",
  1260. "list",
  1261. "listbox",
  1262. "listitem",
  1263. "log",
  1264. "main",
  1265. "marquee",
  1266. "math",
  1267. "menu",
  1268. "menubar",
  1269. "menuitem",
  1270. "menuitemcheckbox",
  1271. "menuitemradio",
  1272. "navigation",
  1273. "none",
  1274. "note",
  1275. "option",
  1276. "presentation",
  1277. "progressbar",
  1278. "radio",
  1279. "radiogroup",
  1280. "region",
  1281. "row",
  1282. "rowgroup",
  1283. "rowheader",
  1284. "scrollbar",
  1285. "search",
  1286. "searchbox",
  1287. "separator",
  1288. "slider",
  1289. "spinbutton",
  1290. "status",
  1291. "switch",
  1292. "tab",
  1293. "table",
  1294. "tablist",
  1295. "tabpanel",
  1296. "term",
  1297. "textbox",
  1298. "timer",
  1299. "toolbar",
  1300. "tooltip",
  1301. "tree",
  1302. "treegrid",
  1303. "treeitem",
  1304. ]
  1305. | Var[
  1306. Literal[
  1307. "alert",
  1308. "alertdialog",
  1309. "application",
  1310. "article",
  1311. "banner",
  1312. "button",
  1313. "cell",
  1314. "checkbox",
  1315. "columnheader",
  1316. "combobox",
  1317. "complementary",
  1318. "contentinfo",
  1319. "definition",
  1320. "dialog",
  1321. "directory",
  1322. "document",
  1323. "feed",
  1324. "figure",
  1325. "form",
  1326. "grid",
  1327. "gridcell",
  1328. "group",
  1329. "heading",
  1330. "img",
  1331. "link",
  1332. "list",
  1333. "listbox",
  1334. "listitem",
  1335. "log",
  1336. "main",
  1337. "marquee",
  1338. "math",
  1339. "menu",
  1340. "menubar",
  1341. "menuitem",
  1342. "menuitemcheckbox",
  1343. "menuitemradio",
  1344. "navigation",
  1345. "none",
  1346. "note",
  1347. "option",
  1348. "presentation",
  1349. "progressbar",
  1350. "radio",
  1351. "radiogroup",
  1352. "region",
  1353. "row",
  1354. "rowgroup",
  1355. "rowheader",
  1356. "scrollbar",
  1357. "search",
  1358. "searchbox",
  1359. "separator",
  1360. "slider",
  1361. "spinbutton",
  1362. "status",
  1363. "switch",
  1364. "tab",
  1365. "table",
  1366. "tablist",
  1367. "tabpanel",
  1368. "term",
  1369. "textbox",
  1370. "timer",
  1371. "toolbar",
  1372. "tooltip",
  1373. "tree",
  1374. "treegrid",
  1375. "treeitem",
  1376. ]
  1377. ]
  1378. | None = None,
  1379. slot: Var[str] | str | None = None,
  1380. spell_check: Var[bool] | bool | None = None,
  1381. tab_index: Var[int] | int | None = None,
  1382. title: Var[str] | str | None = None,
  1383. style: Style | None = None,
  1384. key: Any | None = None,
  1385. id: Any | None = None,
  1386. class_name: Any | None = None,
  1387. autofocus: bool | None = None,
  1388. custom_attrs: dict[str, Var | Any] | None = None,
  1389. on_blur: Optional[EventType[()]] = None,
  1390. on_click: Optional[EventType[()]] = None,
  1391. on_context_menu: Optional[EventType[()]] = None,
  1392. on_double_click: Optional[EventType[()]] = None,
  1393. on_focus: Optional[EventType[()]] = None,
  1394. on_mount: Optional[EventType[()]] = None,
  1395. on_mouse_down: Optional[EventType[()]] = None,
  1396. on_mouse_enter: Optional[EventType[()]] = None,
  1397. on_mouse_leave: Optional[EventType[()]] = None,
  1398. on_mouse_move: Optional[EventType[()]] = None,
  1399. on_mouse_out: Optional[EventType[()]] = None,
  1400. on_mouse_over: Optional[EventType[()]] = None,
  1401. on_mouse_up: Optional[EventType[()]] = None,
  1402. on_scroll: Optional[EventType[()]] = None,
  1403. on_unmount: Optional[EventType[()]] = None,
  1404. **props,
  1405. ) -> "Math":
  1406. """Create the component.
  1407. Args:
  1408. *children: The children of the component.
  1409. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1410. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1411. content_editable: Indicates whether the element's content is editable.
  1412. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1413. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1414. draggable: Defines whether the element can be dragged.
  1415. enter_key_hint: Hints what media types the media element is able to play.
  1416. hidden: Defines whether the element is hidden.
  1417. input_mode: Defines the type of the element.
  1418. item_prop: Defines the name of the element for metadata purposes.
  1419. lang: Defines the language used in the element.
  1420. role: Defines the role of the element.
  1421. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1422. spell_check: Defines whether the element may be checked for spelling errors.
  1423. tab_index: Defines the position of the current element in the tabbing order.
  1424. title: Defines a tooltip for the element.
  1425. style: The style of the component.
  1426. key: A unique key for the component.
  1427. id: The id for the component.
  1428. class_name: The class name for the component.
  1429. autofocus: Whether the component should take the focus once the page is loaded
  1430. custom_attrs: custom attribute
  1431. **props: The props of the component.
  1432. Returns:
  1433. The component.
  1434. """
  1435. ...
  1436. class Html(BaseHTML):
  1437. @overload
  1438. @classmethod
  1439. def create( # type: ignore
  1440. cls,
  1441. *children,
  1442. manifest: Var[str] | str | None = None,
  1443. access_key: Var[str] | str | None = None,
  1444. auto_capitalize: Literal[
  1445. "characters", "none", "off", "on", "sentences", "words"
  1446. ]
  1447. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  1448. | None = None,
  1449. content_editable: Literal["inherit", "plaintext-only", False, True]
  1450. | Var[Literal["inherit", "plaintext-only", False, True]]
  1451. | None = None,
  1452. context_menu: Var[str] | str | None = None,
  1453. dir: Var[str] | str | None = None,
  1454. draggable: Var[bool] | bool | None = None,
  1455. enter_key_hint: Literal[
  1456. "done", "enter", "go", "next", "previous", "search", "send"
  1457. ]
  1458. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  1459. | None = None,
  1460. hidden: Var[bool] | bool | None = None,
  1461. input_mode: Literal[
  1462. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1463. ]
  1464. | Var[
  1465. Literal[
  1466. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  1467. ]
  1468. ]
  1469. | None = None,
  1470. item_prop: Var[str] | str | None = None,
  1471. lang: Var[str] | str | None = None,
  1472. role: Literal[
  1473. "alert",
  1474. "alertdialog",
  1475. "application",
  1476. "article",
  1477. "banner",
  1478. "button",
  1479. "cell",
  1480. "checkbox",
  1481. "columnheader",
  1482. "combobox",
  1483. "complementary",
  1484. "contentinfo",
  1485. "definition",
  1486. "dialog",
  1487. "directory",
  1488. "document",
  1489. "feed",
  1490. "figure",
  1491. "form",
  1492. "grid",
  1493. "gridcell",
  1494. "group",
  1495. "heading",
  1496. "img",
  1497. "link",
  1498. "list",
  1499. "listbox",
  1500. "listitem",
  1501. "log",
  1502. "main",
  1503. "marquee",
  1504. "math",
  1505. "menu",
  1506. "menubar",
  1507. "menuitem",
  1508. "menuitemcheckbox",
  1509. "menuitemradio",
  1510. "navigation",
  1511. "none",
  1512. "note",
  1513. "option",
  1514. "presentation",
  1515. "progressbar",
  1516. "radio",
  1517. "radiogroup",
  1518. "region",
  1519. "row",
  1520. "rowgroup",
  1521. "rowheader",
  1522. "scrollbar",
  1523. "search",
  1524. "searchbox",
  1525. "separator",
  1526. "slider",
  1527. "spinbutton",
  1528. "status",
  1529. "switch",
  1530. "tab",
  1531. "table",
  1532. "tablist",
  1533. "tabpanel",
  1534. "term",
  1535. "textbox",
  1536. "timer",
  1537. "toolbar",
  1538. "tooltip",
  1539. "tree",
  1540. "treegrid",
  1541. "treeitem",
  1542. ]
  1543. | Var[
  1544. Literal[
  1545. "alert",
  1546. "alertdialog",
  1547. "application",
  1548. "article",
  1549. "banner",
  1550. "button",
  1551. "cell",
  1552. "checkbox",
  1553. "columnheader",
  1554. "combobox",
  1555. "complementary",
  1556. "contentinfo",
  1557. "definition",
  1558. "dialog",
  1559. "directory",
  1560. "document",
  1561. "feed",
  1562. "figure",
  1563. "form",
  1564. "grid",
  1565. "gridcell",
  1566. "group",
  1567. "heading",
  1568. "img",
  1569. "link",
  1570. "list",
  1571. "listbox",
  1572. "listitem",
  1573. "log",
  1574. "main",
  1575. "marquee",
  1576. "math",
  1577. "menu",
  1578. "menubar",
  1579. "menuitem",
  1580. "menuitemcheckbox",
  1581. "menuitemradio",
  1582. "navigation",
  1583. "none",
  1584. "note",
  1585. "option",
  1586. "presentation",
  1587. "progressbar",
  1588. "radio",
  1589. "radiogroup",
  1590. "region",
  1591. "row",
  1592. "rowgroup",
  1593. "rowheader",
  1594. "scrollbar",
  1595. "search",
  1596. "searchbox",
  1597. "separator",
  1598. "slider",
  1599. "spinbutton",
  1600. "status",
  1601. "switch",
  1602. "tab",
  1603. "table",
  1604. "tablist",
  1605. "tabpanel",
  1606. "term",
  1607. "textbox",
  1608. "timer",
  1609. "toolbar",
  1610. "tooltip",
  1611. "tree",
  1612. "treegrid",
  1613. "treeitem",
  1614. ]
  1615. ]
  1616. | None = None,
  1617. slot: Var[str] | str | None = None,
  1618. spell_check: Var[bool] | bool | None = None,
  1619. tab_index: Var[int] | int | None = None,
  1620. title: Var[str] | str | None = None,
  1621. style: Style | None = None,
  1622. key: Any | None = None,
  1623. id: Any | None = None,
  1624. class_name: Any | None = None,
  1625. autofocus: bool | None = None,
  1626. custom_attrs: dict[str, Var | Any] | None = None,
  1627. on_blur: Optional[EventType[()]] = None,
  1628. on_click: Optional[EventType[()]] = None,
  1629. on_context_menu: Optional[EventType[()]] = None,
  1630. on_double_click: Optional[EventType[()]] = None,
  1631. on_focus: Optional[EventType[()]] = None,
  1632. on_mount: Optional[EventType[()]] = None,
  1633. on_mouse_down: Optional[EventType[()]] = None,
  1634. on_mouse_enter: Optional[EventType[()]] = None,
  1635. on_mouse_leave: Optional[EventType[()]] = None,
  1636. on_mouse_move: Optional[EventType[()]] = None,
  1637. on_mouse_out: Optional[EventType[()]] = None,
  1638. on_mouse_over: Optional[EventType[()]] = None,
  1639. on_mouse_up: Optional[EventType[()]] = None,
  1640. on_scroll: Optional[EventType[()]] = None,
  1641. on_unmount: Optional[EventType[()]] = None,
  1642. **props,
  1643. ) -> "Html":
  1644. """Create the component.
  1645. Args:
  1646. *children: The children of the component.
  1647. manifest: Specifies the URL of the document's cache manifest (obsolete in HTML5)
  1648. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  1649. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  1650. content_editable: Indicates whether the element's content is editable.
  1651. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  1652. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  1653. draggable: Defines whether the element can be dragged.
  1654. enter_key_hint: Hints what media types the media element is able to play.
  1655. hidden: Defines whether the element is hidden.
  1656. input_mode: Defines the type of the element.
  1657. item_prop: Defines the name of the element for metadata purposes.
  1658. lang: Defines the language used in the element.
  1659. role: Defines the role of the element.
  1660. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  1661. spell_check: Defines whether the element may be checked for spelling errors.
  1662. tab_index: Defines the position of the current element in the tabbing order.
  1663. title: Defines a tooltip for the element.
  1664. style: The style of the component.
  1665. key: A unique key for the component.
  1666. id: The id for the component.
  1667. class_name: The class name for the component.
  1668. autofocus: Whether the component should take the focus once the page is loaded
  1669. custom_attrs: custom attribute
  1670. **props: The props of the component.
  1671. Returns:
  1672. The component.
  1673. """
  1674. ...
  1675. details = Details.create
  1676. dialog = Dialog.create
  1677. summary = Summary.create
  1678. slot = Slot.create
  1679. template = Template.create
  1680. math = Math.create
  1681. html = Html.create