1
0

metadata.pyi 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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, Dict, Optional, Union, overload
  6. from reflex.components.el.element import Element
  7. from reflex.event import BASE_STATE, 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: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  18. target: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  19. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  20. auto_capitalize: Optional[
  21. Union[Var[Union[bool, int, str]], bool, int, str]
  22. ] = None,
  23. content_editable: Optional[
  24. Union[Var[Union[bool, int, str]], bool, int, str]
  25. ] = None,
  26. context_menu: Optional[
  27. Union[Var[Union[bool, int, str]], bool, int, str]
  28. ] = None,
  29. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  30. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  31. enter_key_hint: Optional[
  32. Union[Var[Union[bool, int, str]], bool, int, str]
  33. ] = None,
  34. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  35. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  36. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  37. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  38. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  39. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  40. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  41. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  42. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  43. style: Optional[Style] = None,
  44. key: Optional[Any] = None,
  45. id: Optional[Any] = None,
  46. class_name: Optional[Any] = None,
  47. autofocus: Optional[bool] = None,
  48. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  49. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  50. on_click: Optional[EventType[[], BASE_STATE]] = None,
  51. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  52. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  53. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  54. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  55. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  56. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  57. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  58. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  59. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  60. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  61. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  62. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  63. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  64. **props,
  65. ) -> "Base":
  66. """Create the component.
  67. Args:
  68. *children: The children of the component.
  69. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  70. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  71. content_editable: Indicates whether the element's content is editable.
  72. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  73. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  74. draggable: Defines whether the element can be dragged.
  75. enter_key_hint: Hints what media types the media element is able to play.
  76. hidden: Defines whether the element is hidden.
  77. input_mode: Defines the type of the element.
  78. item_prop: Defines the name of the element for metadata purposes.
  79. lang: Defines the language used in the element.
  80. role: Defines the role of the element.
  81. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  82. spell_check: Defines whether the element may be checked for spelling errors.
  83. tab_index: Defines the position of the current element in the tabbing order.
  84. title: Defines a tooltip for the element.
  85. style: The style of the component.
  86. key: A unique key for the component.
  87. id: The id for the component.
  88. class_name: The class name for the component.
  89. autofocus: Whether the component should take the focus once the page is loaded
  90. custom_attrs: custom attribute
  91. **props: The props of the component.
  92. Returns:
  93. The component.
  94. """
  95. ...
  96. class Head(BaseHTML):
  97. @overload
  98. @classmethod
  99. def create( # type: ignore
  100. cls,
  101. *children,
  102. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  103. auto_capitalize: Optional[
  104. Union[Var[Union[bool, int, str]], bool, int, str]
  105. ] = None,
  106. content_editable: Optional[
  107. Union[Var[Union[bool, int, str]], bool, int, str]
  108. ] = None,
  109. context_menu: Optional[
  110. Union[Var[Union[bool, int, str]], bool, int, str]
  111. ] = None,
  112. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  113. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  114. enter_key_hint: Optional[
  115. Union[Var[Union[bool, int, str]], bool, int, str]
  116. ] = None,
  117. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  118. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  119. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  120. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  121. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  122. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  123. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  124. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  125. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  126. style: Optional[Style] = None,
  127. key: Optional[Any] = None,
  128. id: Optional[Any] = None,
  129. class_name: Optional[Any] = None,
  130. autofocus: Optional[bool] = None,
  131. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  132. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  133. on_click: Optional[EventType[[], BASE_STATE]] = None,
  134. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  135. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  136. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  137. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  138. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  139. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  140. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  141. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  142. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  143. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  144. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  145. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  146. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  147. **props,
  148. ) -> "Head":
  149. """Create the component.
  150. Args:
  151. *children: The children of the component.
  152. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  153. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  154. content_editable: Indicates whether the element's content is editable.
  155. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  156. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  157. draggable: Defines whether the element can be dragged.
  158. enter_key_hint: Hints what media types the media element is able to play.
  159. hidden: Defines whether the element is hidden.
  160. input_mode: Defines the type of the element.
  161. item_prop: Defines the name of the element for metadata purposes.
  162. lang: Defines the language used in the element.
  163. role: Defines the role of the element.
  164. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  165. spell_check: Defines whether the element may be checked for spelling errors.
  166. tab_index: Defines the position of the current element in the tabbing order.
  167. title: Defines a tooltip for the element.
  168. style: The style of the component.
  169. key: A unique key for the component.
  170. id: The id for the component.
  171. class_name: The class name for the component.
  172. autofocus: Whether the component should take the focus once the page is loaded
  173. custom_attrs: custom attribute
  174. **props: The props of the component.
  175. Returns:
  176. The component.
  177. """
  178. ...
  179. class Link(BaseHTML):
  180. @overload
  181. @classmethod
  182. def create( # type: ignore
  183. cls,
  184. *children,
  185. cross_origin: Optional[
  186. Union[Var[Union[bool, int, str]], bool, int, str]
  187. ] = None,
  188. href: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  189. href_lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  190. integrity: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  191. media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  192. referrer_policy: Optional[
  193. Union[Var[Union[bool, int, str]], bool, int, str]
  194. ] = None,
  195. rel: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  196. sizes: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  197. type: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  198. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  199. auto_capitalize: Optional[
  200. Union[Var[Union[bool, int, str]], bool, int, str]
  201. ] = None,
  202. content_editable: Optional[
  203. Union[Var[Union[bool, int, str]], bool, int, str]
  204. ] = None,
  205. context_menu: Optional[
  206. Union[Var[Union[bool, int, str]], bool, int, str]
  207. ] = None,
  208. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  209. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  210. enter_key_hint: Optional[
  211. Union[Var[Union[bool, int, str]], bool, int, str]
  212. ] = None,
  213. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  214. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  215. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  216. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  217. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  218. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  219. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  220. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  221. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  222. style: Optional[Style] = None,
  223. key: Optional[Any] = None,
  224. id: Optional[Any] = None,
  225. class_name: Optional[Any] = None,
  226. autofocus: Optional[bool] = None,
  227. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  228. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  229. on_click: Optional[EventType[[], BASE_STATE]] = None,
  230. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  231. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  232. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  233. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  234. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  235. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  236. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  237. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  238. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  239. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  240. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  241. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  242. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  243. **props,
  244. ) -> "Link":
  245. """Create the component.
  246. Args:
  247. *children: The children of the component.
  248. cross_origin: Specifies the CORS settings for the linked resource
  249. href: Specifies the URL of the linked document/resource
  250. href_lang: Specifies the language of the text in the linked document
  251. integrity: Allows a browser to check the fetched link for integrity
  252. media: Specifies on what device the linked document will be displayed
  253. referrer_policy: Specifies the referrer policy of the linked document
  254. rel: Specifies the relationship between the current document and the linked one
  255. sizes: Specifies the sizes of icons for visual media
  256. type: Specifies the MIME type of the linked document
  257. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  258. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  259. content_editable: Indicates whether the element's content is editable.
  260. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  261. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  262. draggable: Defines whether the element can be dragged.
  263. enter_key_hint: Hints what media types the media element is able to play.
  264. hidden: Defines whether the element is hidden.
  265. input_mode: Defines the type of the element.
  266. item_prop: Defines the name of the element for metadata purposes.
  267. lang: Defines the language used in the element.
  268. role: Defines the role of the element.
  269. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  270. spell_check: Defines whether the element may be checked for spelling errors.
  271. tab_index: Defines the position of the current element in the tabbing order.
  272. title: Defines a tooltip for the element.
  273. style: The style of the component.
  274. key: A unique key for the component.
  275. id: The id for the component.
  276. class_name: The class name for the component.
  277. autofocus: Whether the component should take the focus once the page is loaded
  278. custom_attrs: custom attribute
  279. **props: The props of the component.
  280. Returns:
  281. The component.
  282. """
  283. ...
  284. class Meta(BaseHTML):
  285. @overload
  286. @classmethod
  287. def create( # type: ignore
  288. cls,
  289. *children,
  290. char_set: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  291. content: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  292. http_equiv: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  293. name: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  294. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  295. auto_capitalize: Optional[
  296. Union[Var[Union[bool, int, str]], bool, int, str]
  297. ] = None,
  298. content_editable: Optional[
  299. Union[Var[Union[bool, int, str]], bool, int, str]
  300. ] = None,
  301. context_menu: Optional[
  302. Union[Var[Union[bool, int, str]], bool, int, str]
  303. ] = None,
  304. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  305. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  306. enter_key_hint: Optional[
  307. Union[Var[Union[bool, int, str]], bool, int, str]
  308. ] = None,
  309. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  310. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  311. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  312. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  313. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  314. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  315. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  316. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  317. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  318. style: Optional[Style] = None,
  319. key: Optional[Any] = None,
  320. id: Optional[Any] = None,
  321. class_name: Optional[Any] = None,
  322. autofocus: Optional[bool] = None,
  323. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  324. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  325. on_click: Optional[EventType[[], BASE_STATE]] = None,
  326. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  327. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  328. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  329. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  330. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  331. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  332. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  333. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  334. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  335. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  336. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  337. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  338. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  339. **props,
  340. ) -> "Meta":
  341. """Create the component.
  342. Args:
  343. *children: The children of the component.
  344. char_set: Specifies the character encoding for the HTML document
  345. content: Defines the content of the metadata
  346. http_equiv: Provides an HTTP header for the information/value of the content attribute
  347. name: Specifies a name for the metadata
  348. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  349. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  350. content_editable: Indicates whether the element's content is editable.
  351. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  352. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  353. draggable: Defines whether the element can be dragged.
  354. enter_key_hint: Hints what media types the media element is able to play.
  355. hidden: Defines whether the element is hidden.
  356. input_mode: Defines the type of the element.
  357. item_prop: Defines the name of the element for metadata purposes.
  358. lang: Defines the language used in the element.
  359. role: Defines the role of the element.
  360. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  361. spell_check: Defines whether the element may be checked for spelling errors.
  362. tab_index: Defines the position of the current element in the tabbing order.
  363. title: Defines a tooltip for the element.
  364. style: The style of the component.
  365. key: A unique key for the component.
  366. id: The id for the component.
  367. class_name: The class name for the component.
  368. autofocus: Whether the component should take the focus once the page is loaded
  369. custom_attrs: custom attribute
  370. **props: The props of the component.
  371. Returns:
  372. The component.
  373. """
  374. ...
  375. class Title(Element):
  376. @overload
  377. @classmethod
  378. def create( # type: ignore
  379. cls,
  380. *children,
  381. style: Optional[Style] = None,
  382. key: Optional[Any] = None,
  383. id: Optional[Any] = None,
  384. class_name: Optional[Any] = None,
  385. autofocus: Optional[bool] = None,
  386. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  387. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  388. on_click: Optional[EventType[[], BASE_STATE]] = None,
  389. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  390. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  391. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  392. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  393. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  394. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  395. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  396. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  397. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  398. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  399. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  400. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  401. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  402. **props,
  403. ) -> "Title":
  404. """Create the component.
  405. Args:
  406. *children: The children of the component.
  407. style: The style of the component.
  408. key: A unique key for the component.
  409. id: The id for the component.
  410. class_name: The class name for the component.
  411. autofocus: Whether the component should take the focus once the page is loaded
  412. custom_attrs: custom attribute
  413. **props: The props of the component.
  414. Returns:
  415. The component.
  416. """
  417. ...
  418. class StyleEl(Element):
  419. @overload
  420. @classmethod
  421. def create( # type: ignore
  422. cls,
  423. *children,
  424. media: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  425. style: Optional[Style] = None,
  426. key: Optional[Any] = None,
  427. id: Optional[Any] = None,
  428. class_name: Optional[Any] = None,
  429. autofocus: Optional[bool] = None,
  430. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  431. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  432. on_click: Optional[EventType[[], BASE_STATE]] = None,
  433. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  434. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  435. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  436. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  437. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  438. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  439. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  440. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  441. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  442. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  443. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  444. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  445. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  446. **props,
  447. ) -> "StyleEl":
  448. """Create the component.
  449. Args:
  450. *children: The children of the component.
  451. style: The style of the component.
  452. key: A unique key for the component.
  453. id: The id for the component.
  454. class_name: The class name for the component.
  455. autofocus: Whether the component should take the focus once the page is loaded
  456. custom_attrs: custom attribute
  457. **props: The props of the component.
  458. Returns:
  459. The component.
  460. """
  461. ...
  462. base = Base.create
  463. head = Head.create
  464. link = Link.create
  465. meta = Meta.create
  466. title = Title.create
  467. style = StyleEl.create