metadata.pyi 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127
  1. """Stub file for reflex/components/el/elements/metadata.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Literal, Optional, overload
  6. from reflex.components.el.element import Element
  7. from reflex.event import EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. from .base import BaseHTML
  11. class Base(BaseHTML):
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. href: Var[str] | str | None = None,
  18. target: Var[str] | str | None = None,
  19. access_key: Var[str] | str | None = None,
  20. auto_capitalize: Literal[
  21. "characters", "none", "off", "on", "sentences", "words"
  22. ]
  23. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  24. | None = None,
  25. content_editable: Literal["inherit", "plaintext-only", False, True]
  26. | Var[Literal["inherit", "plaintext-only", False, True]]
  27. | None = None,
  28. context_menu: Var[str] | str | None = None,
  29. dir: Var[str] | str | None = None,
  30. draggable: Var[bool] | bool | None = None,
  31. enter_key_hint: Literal[
  32. "done", "enter", "go", "next", "previous", "search", "send"
  33. ]
  34. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  35. | None = None,
  36. hidden: Var[bool] | bool | None = None,
  37. input_mode: Literal[
  38. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  39. ]
  40. | Var[
  41. Literal[
  42. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  43. ]
  44. ]
  45. | None = None,
  46. item_prop: Var[str] | str | None = None,
  47. lang: Var[str] | str | None = None,
  48. role: Literal[
  49. "alert",
  50. "alertdialog",
  51. "application",
  52. "article",
  53. "banner",
  54. "button",
  55. "cell",
  56. "checkbox",
  57. "columnheader",
  58. "combobox",
  59. "complementary",
  60. "contentinfo",
  61. "definition",
  62. "dialog",
  63. "directory",
  64. "document",
  65. "feed",
  66. "figure",
  67. "form",
  68. "grid",
  69. "gridcell",
  70. "group",
  71. "heading",
  72. "img",
  73. "link",
  74. "list",
  75. "listbox",
  76. "listitem",
  77. "log",
  78. "main",
  79. "marquee",
  80. "math",
  81. "menu",
  82. "menubar",
  83. "menuitem",
  84. "menuitemcheckbox",
  85. "menuitemradio",
  86. "navigation",
  87. "none",
  88. "note",
  89. "option",
  90. "presentation",
  91. "progressbar",
  92. "radio",
  93. "radiogroup",
  94. "region",
  95. "row",
  96. "rowgroup",
  97. "rowheader",
  98. "scrollbar",
  99. "search",
  100. "searchbox",
  101. "separator",
  102. "slider",
  103. "spinbutton",
  104. "status",
  105. "switch",
  106. "tab",
  107. "table",
  108. "tablist",
  109. "tabpanel",
  110. "term",
  111. "textbox",
  112. "timer",
  113. "toolbar",
  114. "tooltip",
  115. "tree",
  116. "treegrid",
  117. "treeitem",
  118. ]
  119. | Var[
  120. Literal[
  121. "alert",
  122. "alertdialog",
  123. "application",
  124. "article",
  125. "banner",
  126. "button",
  127. "cell",
  128. "checkbox",
  129. "columnheader",
  130. "combobox",
  131. "complementary",
  132. "contentinfo",
  133. "definition",
  134. "dialog",
  135. "directory",
  136. "document",
  137. "feed",
  138. "figure",
  139. "form",
  140. "grid",
  141. "gridcell",
  142. "group",
  143. "heading",
  144. "img",
  145. "link",
  146. "list",
  147. "listbox",
  148. "listitem",
  149. "log",
  150. "main",
  151. "marquee",
  152. "math",
  153. "menu",
  154. "menubar",
  155. "menuitem",
  156. "menuitemcheckbox",
  157. "menuitemradio",
  158. "navigation",
  159. "none",
  160. "note",
  161. "option",
  162. "presentation",
  163. "progressbar",
  164. "radio",
  165. "radiogroup",
  166. "region",
  167. "row",
  168. "rowgroup",
  169. "rowheader",
  170. "scrollbar",
  171. "search",
  172. "searchbox",
  173. "separator",
  174. "slider",
  175. "spinbutton",
  176. "status",
  177. "switch",
  178. "tab",
  179. "table",
  180. "tablist",
  181. "tabpanel",
  182. "term",
  183. "textbox",
  184. "timer",
  185. "toolbar",
  186. "tooltip",
  187. "tree",
  188. "treegrid",
  189. "treeitem",
  190. ]
  191. ]
  192. | None = None,
  193. slot: Var[str] | str | None = None,
  194. spell_check: Var[bool] | bool | None = None,
  195. tab_index: Var[int] | int | None = None,
  196. title: Var[str] | str | None = None,
  197. style: Style | None = None,
  198. key: Any | None = None,
  199. id: Any | None = None,
  200. class_name: Any | None = None,
  201. autofocus: bool | None = None,
  202. custom_attrs: dict[str, Var | Any] | None = None,
  203. on_blur: Optional[EventType[()]] = None,
  204. on_click: Optional[EventType[()]] = None,
  205. on_context_menu: Optional[EventType[()]] = None,
  206. on_double_click: Optional[EventType[()]] = None,
  207. on_focus: Optional[EventType[()]] = None,
  208. on_mount: Optional[EventType[()]] = None,
  209. on_mouse_down: Optional[EventType[()]] = None,
  210. on_mouse_enter: Optional[EventType[()]] = None,
  211. on_mouse_leave: Optional[EventType[()]] = None,
  212. on_mouse_move: Optional[EventType[()]] = None,
  213. on_mouse_out: Optional[EventType[()]] = None,
  214. on_mouse_over: Optional[EventType[()]] = None,
  215. on_mouse_up: Optional[EventType[()]] = None,
  216. on_scroll: Optional[EventType[()]] = None,
  217. on_unmount: Optional[EventType[()]] = None,
  218. **props,
  219. ) -> "Base":
  220. """Create the component.
  221. Args:
  222. *children: The children of the component.
  223. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  224. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  225. content_editable: Indicates whether the element's content is editable.
  226. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  227. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  228. draggable: Defines whether the element can be dragged.
  229. enter_key_hint: Hints what media types the media element is able to play.
  230. hidden: Defines whether the element is hidden.
  231. input_mode: Defines the type of the element.
  232. item_prop: Defines the name of the element for metadata purposes.
  233. lang: Defines the language used in the element.
  234. role: Defines the role of the element.
  235. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  236. spell_check: Defines whether the element may be checked for spelling errors.
  237. tab_index: Defines the position of the current element in the tabbing order.
  238. title: Defines a tooltip for the element.
  239. style: The style of the component.
  240. key: A unique key for the component.
  241. id: The id for the component.
  242. class_name: The class name for the component.
  243. autofocus: Whether the component should take the focus once the page is loaded
  244. custom_attrs: custom attribute
  245. **props: The props of the component.
  246. Returns:
  247. The component.
  248. """
  249. ...
  250. class Head(BaseHTML):
  251. @overload
  252. @classmethod
  253. def create( # type: ignore
  254. cls,
  255. *children,
  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. ) -> "Head":
  457. """Create the component.
  458. Args:
  459. *children: The children of the component.
  460. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  461. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  462. content_editable: Indicates whether the element's content is editable.
  463. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  464. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  465. draggable: Defines whether the element can be dragged.
  466. enter_key_hint: Hints what media types the media element is able to play.
  467. hidden: Defines whether the element is hidden.
  468. input_mode: Defines the type of the element.
  469. item_prop: Defines the name of the element for metadata purposes.
  470. lang: Defines the language used in the element.
  471. role: Defines the role of the element.
  472. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  473. spell_check: Defines whether the element may be checked for spelling errors.
  474. tab_index: Defines the position of the current element in the tabbing order.
  475. title: Defines a tooltip for the element.
  476. style: The style of the component.
  477. key: A unique key for the component.
  478. id: The id for the component.
  479. class_name: The class name for the component.
  480. autofocus: Whether the component should take the focus once the page is loaded
  481. custom_attrs: custom attribute
  482. **props: The props of the component.
  483. Returns:
  484. The component.
  485. """
  486. ...
  487. class Link(BaseHTML):
  488. @overload
  489. @classmethod
  490. def create( # type: ignore
  491. cls,
  492. *children,
  493. cross_origin: Literal["", "anonymous", "use-credentials"]
  494. | Var[Literal["", "anonymous", "use-credentials"]]
  495. | None = None,
  496. href: Var[str] | str | None = None,
  497. href_lang: Var[str] | str | None = None,
  498. integrity: Var[str] | str | None = None,
  499. media: Var[str] | str | None = None,
  500. referrer_policy: Literal[
  501. "",
  502. "no-referrer",
  503. "no-referrer-when-downgrade",
  504. "origin",
  505. "origin-when-cross-origin",
  506. "same-origin",
  507. "strict-origin",
  508. "strict-origin-when-cross-origin",
  509. "unsafe-url",
  510. ]
  511. | Var[
  512. Literal[
  513. "",
  514. "no-referrer",
  515. "no-referrer-when-downgrade",
  516. "origin",
  517. "origin-when-cross-origin",
  518. "same-origin",
  519. "strict-origin",
  520. "strict-origin-when-cross-origin",
  521. "unsafe-url",
  522. ]
  523. ]
  524. | None = None,
  525. rel: Var[str] | str | None = None,
  526. sizes: Var[str] | str | None = None,
  527. type: Var[str] | str | None = None,
  528. access_key: Var[str] | str | None = None,
  529. auto_capitalize: Literal[
  530. "characters", "none", "off", "on", "sentences", "words"
  531. ]
  532. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  533. | None = None,
  534. content_editable: Literal["inherit", "plaintext-only", False, True]
  535. | Var[Literal["inherit", "plaintext-only", False, True]]
  536. | None = None,
  537. context_menu: Var[str] | str | None = None,
  538. dir: Var[str] | str | None = None,
  539. draggable: Var[bool] | bool | None = None,
  540. enter_key_hint: Literal[
  541. "done", "enter", "go", "next", "previous", "search", "send"
  542. ]
  543. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  544. | None = None,
  545. hidden: Var[bool] | bool | None = None,
  546. input_mode: Literal[
  547. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  548. ]
  549. | Var[
  550. Literal[
  551. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  552. ]
  553. ]
  554. | None = None,
  555. item_prop: Var[str] | str | None = None,
  556. lang: Var[str] | str | None = None,
  557. role: Literal[
  558. "alert",
  559. "alertdialog",
  560. "application",
  561. "article",
  562. "banner",
  563. "button",
  564. "cell",
  565. "checkbox",
  566. "columnheader",
  567. "combobox",
  568. "complementary",
  569. "contentinfo",
  570. "definition",
  571. "dialog",
  572. "directory",
  573. "document",
  574. "feed",
  575. "figure",
  576. "form",
  577. "grid",
  578. "gridcell",
  579. "group",
  580. "heading",
  581. "img",
  582. "link",
  583. "list",
  584. "listbox",
  585. "listitem",
  586. "log",
  587. "main",
  588. "marquee",
  589. "math",
  590. "menu",
  591. "menubar",
  592. "menuitem",
  593. "menuitemcheckbox",
  594. "menuitemradio",
  595. "navigation",
  596. "none",
  597. "note",
  598. "option",
  599. "presentation",
  600. "progressbar",
  601. "radio",
  602. "radiogroup",
  603. "region",
  604. "row",
  605. "rowgroup",
  606. "rowheader",
  607. "scrollbar",
  608. "search",
  609. "searchbox",
  610. "separator",
  611. "slider",
  612. "spinbutton",
  613. "status",
  614. "switch",
  615. "tab",
  616. "table",
  617. "tablist",
  618. "tabpanel",
  619. "term",
  620. "textbox",
  621. "timer",
  622. "toolbar",
  623. "tooltip",
  624. "tree",
  625. "treegrid",
  626. "treeitem",
  627. ]
  628. | Var[
  629. Literal[
  630. "alert",
  631. "alertdialog",
  632. "application",
  633. "article",
  634. "banner",
  635. "button",
  636. "cell",
  637. "checkbox",
  638. "columnheader",
  639. "combobox",
  640. "complementary",
  641. "contentinfo",
  642. "definition",
  643. "dialog",
  644. "directory",
  645. "document",
  646. "feed",
  647. "figure",
  648. "form",
  649. "grid",
  650. "gridcell",
  651. "group",
  652. "heading",
  653. "img",
  654. "link",
  655. "list",
  656. "listbox",
  657. "listitem",
  658. "log",
  659. "main",
  660. "marquee",
  661. "math",
  662. "menu",
  663. "menubar",
  664. "menuitem",
  665. "menuitemcheckbox",
  666. "menuitemradio",
  667. "navigation",
  668. "none",
  669. "note",
  670. "option",
  671. "presentation",
  672. "progressbar",
  673. "radio",
  674. "radiogroup",
  675. "region",
  676. "row",
  677. "rowgroup",
  678. "rowheader",
  679. "scrollbar",
  680. "search",
  681. "searchbox",
  682. "separator",
  683. "slider",
  684. "spinbutton",
  685. "status",
  686. "switch",
  687. "tab",
  688. "table",
  689. "tablist",
  690. "tabpanel",
  691. "term",
  692. "textbox",
  693. "timer",
  694. "toolbar",
  695. "tooltip",
  696. "tree",
  697. "treegrid",
  698. "treeitem",
  699. ]
  700. ]
  701. | None = None,
  702. slot: Var[str] | str | None = None,
  703. spell_check: Var[bool] | bool | None = None,
  704. tab_index: Var[int] | int | None = None,
  705. title: Var[str] | str | None = None,
  706. style: Style | None = None,
  707. key: Any | None = None,
  708. id: Any | None = None,
  709. class_name: Any | None = None,
  710. autofocus: bool | None = None,
  711. custom_attrs: dict[str, Var | Any] | None = None,
  712. on_blur: Optional[EventType[()]] = None,
  713. on_click: Optional[EventType[()]] = None,
  714. on_context_menu: Optional[EventType[()]] = None,
  715. on_double_click: Optional[EventType[()]] = None,
  716. on_focus: Optional[EventType[()]] = None,
  717. on_mount: Optional[EventType[()]] = None,
  718. on_mouse_down: Optional[EventType[()]] = None,
  719. on_mouse_enter: Optional[EventType[()]] = None,
  720. on_mouse_leave: Optional[EventType[()]] = None,
  721. on_mouse_move: Optional[EventType[()]] = None,
  722. on_mouse_out: Optional[EventType[()]] = None,
  723. on_mouse_over: Optional[EventType[()]] = None,
  724. on_mouse_up: Optional[EventType[()]] = None,
  725. on_scroll: Optional[EventType[()]] = None,
  726. on_unmount: Optional[EventType[()]] = None,
  727. **props,
  728. ) -> "Link":
  729. """Create the component.
  730. Args:
  731. *children: The children of the component.
  732. cross_origin: Specifies the CORS settings for the linked resource
  733. href: Specifies the URL of the linked document/resource
  734. href_lang: Specifies the language of the text in the linked document
  735. integrity: Allows a browser to check the fetched link for integrity
  736. media: Specifies on what device the linked document will be displayed
  737. referrer_policy: Specifies the referrer policy of the linked document
  738. rel: Specifies the relationship between the current document and the linked one
  739. sizes: Specifies the sizes of icons for visual media
  740. type: Specifies the MIME type of the linked document
  741. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  742. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  743. content_editable: Indicates whether the element's content is editable.
  744. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  745. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  746. draggable: Defines whether the element can be dragged.
  747. enter_key_hint: Hints what media types the media element is able to play.
  748. hidden: Defines whether the element is hidden.
  749. input_mode: Defines the type of the element.
  750. item_prop: Defines the name of the element for metadata purposes.
  751. lang: Defines the language used in the element.
  752. role: Defines the role of the element.
  753. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  754. spell_check: Defines whether the element may be checked for spelling errors.
  755. tab_index: Defines the position of the current element in the tabbing order.
  756. title: Defines a tooltip for the element.
  757. style: The style of the component.
  758. key: A unique key for the component.
  759. id: The id for the component.
  760. class_name: The class name for the component.
  761. autofocus: Whether the component should take the focus once the page is loaded
  762. custom_attrs: custom attribute
  763. **props: The props of the component.
  764. Returns:
  765. The component.
  766. """
  767. ...
  768. class Meta(BaseHTML):
  769. @overload
  770. @classmethod
  771. def create( # type: ignore
  772. cls,
  773. *children,
  774. char_set: Var[str] | str | None = None,
  775. content: Var[str] | str | None = None,
  776. http_equiv: Var[str] | str | None = None,
  777. name: Var[str] | str | None = None,
  778. access_key: Var[str] | str | None = None,
  779. auto_capitalize: Literal[
  780. "characters", "none", "off", "on", "sentences", "words"
  781. ]
  782. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  783. | None = None,
  784. content_editable: Literal["inherit", "plaintext-only", False, True]
  785. | Var[Literal["inherit", "plaintext-only", False, True]]
  786. | None = None,
  787. context_menu: Var[str] | str | None = None,
  788. dir: Var[str] | str | None = None,
  789. draggable: Var[bool] | bool | None = None,
  790. enter_key_hint: Literal[
  791. "done", "enter", "go", "next", "previous", "search", "send"
  792. ]
  793. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  794. | None = None,
  795. hidden: Var[bool] | bool | None = None,
  796. input_mode: Literal[
  797. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  798. ]
  799. | Var[
  800. Literal[
  801. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  802. ]
  803. ]
  804. | None = None,
  805. item_prop: Var[str] | str | None = None,
  806. lang: Var[str] | str | None = None,
  807. role: Literal[
  808. "alert",
  809. "alertdialog",
  810. "application",
  811. "article",
  812. "banner",
  813. "button",
  814. "cell",
  815. "checkbox",
  816. "columnheader",
  817. "combobox",
  818. "complementary",
  819. "contentinfo",
  820. "definition",
  821. "dialog",
  822. "directory",
  823. "document",
  824. "feed",
  825. "figure",
  826. "form",
  827. "grid",
  828. "gridcell",
  829. "group",
  830. "heading",
  831. "img",
  832. "link",
  833. "list",
  834. "listbox",
  835. "listitem",
  836. "log",
  837. "main",
  838. "marquee",
  839. "math",
  840. "menu",
  841. "menubar",
  842. "menuitem",
  843. "menuitemcheckbox",
  844. "menuitemradio",
  845. "navigation",
  846. "none",
  847. "note",
  848. "option",
  849. "presentation",
  850. "progressbar",
  851. "radio",
  852. "radiogroup",
  853. "region",
  854. "row",
  855. "rowgroup",
  856. "rowheader",
  857. "scrollbar",
  858. "search",
  859. "searchbox",
  860. "separator",
  861. "slider",
  862. "spinbutton",
  863. "status",
  864. "switch",
  865. "tab",
  866. "table",
  867. "tablist",
  868. "tabpanel",
  869. "term",
  870. "textbox",
  871. "timer",
  872. "toolbar",
  873. "tooltip",
  874. "tree",
  875. "treegrid",
  876. "treeitem",
  877. ]
  878. | Var[
  879. Literal[
  880. "alert",
  881. "alertdialog",
  882. "application",
  883. "article",
  884. "banner",
  885. "button",
  886. "cell",
  887. "checkbox",
  888. "columnheader",
  889. "combobox",
  890. "complementary",
  891. "contentinfo",
  892. "definition",
  893. "dialog",
  894. "directory",
  895. "document",
  896. "feed",
  897. "figure",
  898. "form",
  899. "grid",
  900. "gridcell",
  901. "group",
  902. "heading",
  903. "img",
  904. "link",
  905. "list",
  906. "listbox",
  907. "listitem",
  908. "log",
  909. "main",
  910. "marquee",
  911. "math",
  912. "menu",
  913. "menubar",
  914. "menuitem",
  915. "menuitemcheckbox",
  916. "menuitemradio",
  917. "navigation",
  918. "none",
  919. "note",
  920. "option",
  921. "presentation",
  922. "progressbar",
  923. "radio",
  924. "radiogroup",
  925. "region",
  926. "row",
  927. "rowgroup",
  928. "rowheader",
  929. "scrollbar",
  930. "search",
  931. "searchbox",
  932. "separator",
  933. "slider",
  934. "spinbutton",
  935. "status",
  936. "switch",
  937. "tab",
  938. "table",
  939. "tablist",
  940. "tabpanel",
  941. "term",
  942. "textbox",
  943. "timer",
  944. "toolbar",
  945. "tooltip",
  946. "tree",
  947. "treegrid",
  948. "treeitem",
  949. ]
  950. ]
  951. | None = None,
  952. slot: Var[str] | str | None = None,
  953. spell_check: Var[bool] | bool | None = None,
  954. tab_index: Var[int] | int | None = None,
  955. title: Var[str] | str | None = None,
  956. style: Style | None = None,
  957. key: Any | None = None,
  958. id: Any | None = None,
  959. class_name: Any | None = None,
  960. autofocus: bool | None = None,
  961. custom_attrs: dict[str, Var | Any] | None = None,
  962. on_blur: Optional[EventType[()]] = None,
  963. on_click: Optional[EventType[()]] = None,
  964. on_context_menu: Optional[EventType[()]] = None,
  965. on_double_click: Optional[EventType[()]] = None,
  966. on_focus: Optional[EventType[()]] = None,
  967. on_mount: Optional[EventType[()]] = None,
  968. on_mouse_down: Optional[EventType[()]] = None,
  969. on_mouse_enter: Optional[EventType[()]] = None,
  970. on_mouse_leave: Optional[EventType[()]] = None,
  971. on_mouse_move: Optional[EventType[()]] = None,
  972. on_mouse_out: Optional[EventType[()]] = None,
  973. on_mouse_over: Optional[EventType[()]] = None,
  974. on_mouse_up: Optional[EventType[()]] = None,
  975. on_scroll: Optional[EventType[()]] = None,
  976. on_unmount: Optional[EventType[()]] = None,
  977. **props,
  978. ) -> "Meta":
  979. """Create the component.
  980. Args:
  981. *children: The children of the component.
  982. char_set: Specifies the character encoding for the HTML document
  983. content: Defines the content of the metadata
  984. http_equiv: Provides an HTTP header for the information/value of the content attribute
  985. name: Specifies a name for the metadata
  986. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  987. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  988. content_editable: Indicates whether the element's content is editable.
  989. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  990. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  991. draggable: Defines whether the element can be dragged.
  992. enter_key_hint: Hints what media types the media element is able to play.
  993. hidden: Defines whether the element is hidden.
  994. input_mode: Defines the type of the element.
  995. item_prop: Defines the name of the element for metadata purposes.
  996. lang: Defines the language used in the element.
  997. role: Defines the role of the element.
  998. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  999. spell_check: Defines whether the element may be checked for spelling errors.
  1000. tab_index: Defines the position of the current element in the tabbing order.
  1001. title: Defines a tooltip for the element.
  1002. style: The style of the component.
  1003. key: A unique key for the component.
  1004. id: The id for the component.
  1005. class_name: The class name for the component.
  1006. autofocus: Whether the component should take the focus once the page is loaded
  1007. custom_attrs: custom attribute
  1008. **props: The props of the component.
  1009. Returns:
  1010. The component.
  1011. """
  1012. ...
  1013. class Title(Element):
  1014. @overload
  1015. @classmethod
  1016. def create( # type: ignore
  1017. cls,
  1018. *children,
  1019. style: Style | None = None,
  1020. key: Any | None = None,
  1021. id: Any | None = None,
  1022. class_name: Any | None = None,
  1023. autofocus: bool | None = None,
  1024. custom_attrs: dict[str, Var | Any] | None = None,
  1025. on_blur: Optional[EventType[()]] = None,
  1026. on_click: Optional[EventType[()]] = None,
  1027. on_context_menu: Optional[EventType[()]] = None,
  1028. on_double_click: Optional[EventType[()]] = None,
  1029. on_focus: Optional[EventType[()]] = None,
  1030. on_mount: Optional[EventType[()]] = None,
  1031. on_mouse_down: Optional[EventType[()]] = None,
  1032. on_mouse_enter: Optional[EventType[()]] = None,
  1033. on_mouse_leave: Optional[EventType[()]] = None,
  1034. on_mouse_move: Optional[EventType[()]] = None,
  1035. on_mouse_out: Optional[EventType[()]] = None,
  1036. on_mouse_over: Optional[EventType[()]] = None,
  1037. on_mouse_up: Optional[EventType[()]] = None,
  1038. on_scroll: Optional[EventType[()]] = None,
  1039. on_unmount: Optional[EventType[()]] = None,
  1040. **props,
  1041. ) -> "Title":
  1042. """Create the component.
  1043. Args:
  1044. *children: The children of the component.
  1045. style: The style of the component.
  1046. key: A unique key for the component.
  1047. id: The id for the component.
  1048. class_name: The class name for the component.
  1049. autofocus: Whether the component should take the focus once the page is loaded
  1050. custom_attrs: custom attribute
  1051. **props: The props of the component.
  1052. Returns:
  1053. The component.
  1054. """
  1055. ...
  1056. class StyleEl(Element):
  1057. @overload
  1058. @classmethod
  1059. def create( # type: ignore
  1060. cls,
  1061. *children,
  1062. media: Var[str] | str | None = None,
  1063. style: Style | None = None,
  1064. key: Any | None = None,
  1065. id: Any | None = None,
  1066. class_name: Any | None = None,
  1067. autofocus: bool | None = None,
  1068. custom_attrs: dict[str, Var | Any] | None = None,
  1069. on_blur: Optional[EventType[()]] = None,
  1070. on_click: Optional[EventType[()]] = None,
  1071. on_context_menu: Optional[EventType[()]] = None,
  1072. on_double_click: Optional[EventType[()]] = None,
  1073. on_focus: Optional[EventType[()]] = None,
  1074. on_mount: Optional[EventType[()]] = None,
  1075. on_mouse_down: Optional[EventType[()]] = None,
  1076. on_mouse_enter: Optional[EventType[()]] = None,
  1077. on_mouse_leave: Optional[EventType[()]] = None,
  1078. on_mouse_move: Optional[EventType[()]] = None,
  1079. on_mouse_out: Optional[EventType[()]] = None,
  1080. on_mouse_over: Optional[EventType[()]] = None,
  1081. on_mouse_up: Optional[EventType[()]] = None,
  1082. on_scroll: Optional[EventType[()]] = None,
  1083. on_unmount: Optional[EventType[()]] = None,
  1084. **props,
  1085. ) -> "StyleEl":
  1086. """Create the component.
  1087. Args:
  1088. *children: The children of the component.
  1089. style: The style of the component.
  1090. key: A unique key for the component.
  1091. id: The id for the component.
  1092. class_name: The class name for the component.
  1093. autofocus: Whether the component should take the focus once the page is loaded
  1094. custom_attrs: custom attribute
  1095. **props: The props of the component.
  1096. Returns:
  1097. The component.
  1098. """
  1099. ...
  1100. base = Base.create
  1101. head = Head.create
  1102. link = Link.create
  1103. meta = Meta.create
  1104. title = Title.create
  1105. style = StyleEl.create