html.pyi 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. """Stub file for reflex/components/core/html.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from typing import Dict
  10. from reflex.components.el.elements.typography import Div
  11. from reflex.vars import Var
  12. class Html(Div):
  13. @overload
  14. @classmethod
  15. def create( # type: ignore
  16. cls,
  17. *children,
  18. dangerouslySetInnerHTML: Optional[
  19. Union[Var[Dict[str, str]], Dict[str, str]]
  20. ] = None,
  21. access_key: Optional[
  22. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  23. ] = None,
  24. auto_capitalize: Optional[
  25. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  26. ] = None,
  27. content_editable: Optional[
  28. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  29. ] = None,
  30. context_menu: Optional[
  31. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  32. ] = None,
  33. dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  34. draggable: Optional[
  35. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  36. ] = None,
  37. enter_key_hint: Optional[
  38. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  39. ] = None,
  40. hidden: Optional[
  41. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  42. ] = None,
  43. input_mode: Optional[
  44. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  45. ] = None,
  46. item_prop: Optional[
  47. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  48. ] = None,
  49. lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  50. role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  51. slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
  52. spell_check: Optional[
  53. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  54. ] = None,
  55. tab_index: Optional[
  56. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  57. ] = None,
  58. title: Optional[
  59. Union[Var[Union[str, int, bool]], Union[str, int, bool]]
  60. ] = None,
  61. style: Optional[Style] = None,
  62. key: Optional[Any] = None,
  63. id: Optional[Any] = None,
  64. class_name: Optional[Any] = None,
  65. autofocus: Optional[bool] = None,
  66. _rename_props: Optional[Dict[str, str]] = None,
  67. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  68. on_blur: Optional[
  69. Union[EventHandler, EventSpec, list, function, BaseVar]
  70. ] = None,
  71. on_click: Optional[
  72. Union[EventHandler, EventSpec, list, function, BaseVar]
  73. ] = None,
  74. on_context_menu: Optional[
  75. Union[EventHandler, EventSpec, list, function, BaseVar]
  76. ] = None,
  77. on_double_click: Optional[
  78. Union[EventHandler, EventSpec, list, function, BaseVar]
  79. ] = None,
  80. on_focus: Optional[
  81. Union[EventHandler, EventSpec, list, function, BaseVar]
  82. ] = None,
  83. on_mount: Optional[
  84. Union[EventHandler, EventSpec, list, function, BaseVar]
  85. ] = None,
  86. on_mouse_down: Optional[
  87. Union[EventHandler, EventSpec, list, function, BaseVar]
  88. ] = None,
  89. on_mouse_enter: Optional[
  90. Union[EventHandler, EventSpec, list, function, BaseVar]
  91. ] = None,
  92. on_mouse_leave: Optional[
  93. Union[EventHandler, EventSpec, list, function, BaseVar]
  94. ] = None,
  95. on_mouse_move: Optional[
  96. Union[EventHandler, EventSpec, list, function, BaseVar]
  97. ] = None,
  98. on_mouse_out: Optional[
  99. Union[EventHandler, EventSpec, list, function, BaseVar]
  100. ] = None,
  101. on_mouse_over: Optional[
  102. Union[EventHandler, EventSpec, list, function, BaseVar]
  103. ] = None,
  104. on_mouse_up: Optional[
  105. Union[EventHandler, EventSpec, list, function, BaseVar]
  106. ] = None,
  107. on_scroll: Optional[
  108. Union[EventHandler, EventSpec, list, function, BaseVar]
  109. ] = None,
  110. on_unmount: Optional[
  111. Union[EventHandler, EventSpec, list, function, BaseVar]
  112. ] = None,
  113. **props
  114. ) -> "Html":
  115. """Create a html component.
  116. Args:
  117. *children: The children of the component.
  118. dangerouslySetInnerHTML: The HTML to render.
  119. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  120. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  121. content_editable: Indicates whether the element's content is editable.
  122. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  123. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  124. draggable: Defines whether the element can be dragged.
  125. enter_key_hint: Hints what media types the media element is able to play.
  126. hidden: Defines whether the element is hidden.
  127. input_mode: Defines the type of the element.
  128. item_prop: Defines the name of the element for metadata purposes.
  129. lang: Defines the language used in the element.
  130. role: Defines the role of the element.
  131. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  132. spell_check: Defines whether the element may be checked for spelling errors.
  133. tab_index: Defines the position of the current element in the tabbing order.
  134. title: Defines a tooltip for the element.
  135. style: The style of the component.
  136. key: A unique key for the component.
  137. id: The id for the component.
  138. class_name: The class name for the component.
  139. autofocus: Whether the component should take the focus once the page is loaded
  140. _rename_props: props to change the name of
  141. custom_attrs: custom attribute
  142. **props: The props to pass to the component.
  143. Returns:
  144. The html component.
  145. Raises:
  146. ValueError: If children are not provided or more than one child is provided.
  147. """
  148. ...