html.pyi 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. """Stub file for reflex/components/core/html.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.elements.typography import Div
  7. from reflex.event import EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. class Html(Div):
  11. @overload
  12. @classmethod
  13. def create( # type: ignore
  14. cls,
  15. *children,
  16. dangerouslySetInnerHTML: Var[dict[str, str]] | dict[str, str] | 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. ) -> "Html":
  218. """Create a html component.
  219. Args:
  220. *children: The children of the component.
  221. dangerouslySetInnerHTML: The HTML to render.
  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 to pass to the component.
  245. Returns:
  246. The html component.
  247. Raises:
  248. ValueError: If children are not provided or more than one child is provided.
  249. """
  250. ...
  251. html = Html.create