meta.pyi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. """Stub file for reflex/components/base/meta.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, Optional, Union, overload
  6. from reflex.components.component import Component
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.vars import Var
  10. class Title(Component):
  11. def render(self) -> dict: ...
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. style: Optional[Style] = None,
  18. key: Optional[Any] = None,
  19. id: Optional[Any] = None,
  20. class_name: Optional[Any] = None,
  21. autofocus: Optional[bool] = None,
  22. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  23. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  24. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  25. on_context_menu: Optional[
  26. Union[EventHandler, EventSpec, list, Callable, Var]
  27. ] = None,
  28. on_double_click: Optional[
  29. Union[EventHandler, EventSpec, list, Callable, Var]
  30. ] = None,
  31. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  32. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  33. on_mouse_down: Optional[
  34. Union[EventHandler, EventSpec, list, Callable, Var]
  35. ] = None,
  36. on_mouse_enter: Optional[
  37. Union[EventHandler, EventSpec, list, Callable, Var]
  38. ] = None,
  39. on_mouse_leave: Optional[
  40. Union[EventHandler, EventSpec, list, Callable, Var]
  41. ] = None,
  42. on_mouse_move: Optional[
  43. Union[EventHandler, EventSpec, list, Callable, Var]
  44. ] = None,
  45. on_mouse_out: Optional[
  46. Union[EventHandler, EventSpec, list, Callable, Var]
  47. ] = None,
  48. on_mouse_over: Optional[
  49. Union[EventHandler, EventSpec, list, Callable, Var]
  50. ] = None,
  51. on_mouse_up: Optional[
  52. Union[EventHandler, EventSpec, list, Callable, Var]
  53. ] = None,
  54. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  55. on_unmount: Optional[
  56. Union[EventHandler, EventSpec, list, Callable, Var]
  57. ] = None,
  58. **props,
  59. ) -> "Title":
  60. """Create the component.
  61. Args:
  62. *children: The children of the component.
  63. style: The style of the component.
  64. key: A unique key for the component.
  65. id: The id for the component.
  66. class_name: The class name for the component.
  67. autofocus: Whether the component should take the focus once the page is loaded
  68. custom_attrs: custom attribute
  69. **props: The props of the component.
  70. Returns:
  71. The component.
  72. """
  73. ...
  74. class Meta(Component):
  75. @overload
  76. @classmethod
  77. def create( # type: ignore
  78. cls,
  79. *children,
  80. char_set: Optional[str] = None,
  81. content: Optional[str] = None,
  82. name: Optional[str] = None,
  83. property: Optional[str] = None,
  84. http_equiv: Optional[str] = None,
  85. style: Optional[Style] = None,
  86. key: Optional[Any] = None,
  87. id: Optional[Any] = None,
  88. class_name: Optional[Any] = None,
  89. autofocus: Optional[bool] = None,
  90. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  91. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  92. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  93. on_context_menu: Optional[
  94. Union[EventHandler, EventSpec, list, Callable, Var]
  95. ] = None,
  96. on_double_click: Optional[
  97. Union[EventHandler, EventSpec, list, Callable, Var]
  98. ] = None,
  99. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  100. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  101. on_mouse_down: Optional[
  102. Union[EventHandler, EventSpec, list, Callable, Var]
  103. ] = None,
  104. on_mouse_enter: Optional[
  105. Union[EventHandler, EventSpec, list, Callable, Var]
  106. ] = None,
  107. on_mouse_leave: Optional[
  108. Union[EventHandler, EventSpec, list, Callable, Var]
  109. ] = None,
  110. on_mouse_move: Optional[
  111. Union[EventHandler, EventSpec, list, Callable, Var]
  112. ] = None,
  113. on_mouse_out: Optional[
  114. Union[EventHandler, EventSpec, list, Callable, Var]
  115. ] = None,
  116. on_mouse_over: Optional[
  117. Union[EventHandler, EventSpec, list, Callable, Var]
  118. ] = None,
  119. on_mouse_up: Optional[
  120. Union[EventHandler, EventSpec, list, Callable, Var]
  121. ] = None,
  122. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  123. on_unmount: Optional[
  124. Union[EventHandler, EventSpec, list, Callable, Var]
  125. ] = None,
  126. **props,
  127. ) -> "Meta":
  128. """Create the component.
  129. Args:
  130. *children: The children of the component.
  131. char_set: The description of character encoding.
  132. content: The value of meta.
  133. name: The name of metadata.
  134. property: The type of metadata value.
  135. http_equiv: The type of metadata value.
  136. style: The style of the component.
  137. key: A unique key for the component.
  138. id: The id for the component.
  139. class_name: The class name for the component.
  140. autofocus: Whether the component should take the focus once the page is loaded
  141. custom_attrs: custom attribute
  142. **props: The props of the component.
  143. Returns:
  144. The component.
  145. """
  146. ...
  147. class Description(Meta):
  148. @overload
  149. @classmethod
  150. def create( # type: ignore
  151. cls,
  152. *children,
  153. name: Optional[str] = None,
  154. char_set: Optional[str] = None,
  155. content: Optional[str] = None,
  156. property: Optional[str] = None,
  157. http_equiv: Optional[str] = None,
  158. style: Optional[Style] = None,
  159. key: Optional[Any] = None,
  160. id: Optional[Any] = None,
  161. class_name: Optional[Any] = None,
  162. autofocus: Optional[bool] = None,
  163. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  164. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  165. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  166. on_context_menu: Optional[
  167. Union[EventHandler, EventSpec, list, Callable, Var]
  168. ] = None,
  169. on_double_click: Optional[
  170. Union[EventHandler, EventSpec, list, Callable, Var]
  171. ] = None,
  172. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  173. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  174. on_mouse_down: Optional[
  175. Union[EventHandler, EventSpec, list, Callable, Var]
  176. ] = None,
  177. on_mouse_enter: Optional[
  178. Union[EventHandler, EventSpec, list, Callable, Var]
  179. ] = None,
  180. on_mouse_leave: Optional[
  181. Union[EventHandler, EventSpec, list, Callable, Var]
  182. ] = None,
  183. on_mouse_move: Optional[
  184. Union[EventHandler, EventSpec, list, Callable, Var]
  185. ] = None,
  186. on_mouse_out: Optional[
  187. Union[EventHandler, EventSpec, list, Callable, Var]
  188. ] = None,
  189. on_mouse_over: Optional[
  190. Union[EventHandler, EventSpec, list, Callable, Var]
  191. ] = None,
  192. on_mouse_up: Optional[
  193. Union[EventHandler, EventSpec, list, Callable, Var]
  194. ] = None,
  195. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  196. on_unmount: Optional[
  197. Union[EventHandler, EventSpec, list, Callable, Var]
  198. ] = None,
  199. **props,
  200. ) -> "Description":
  201. """Create the component.
  202. Args:
  203. *children: The children of the component.
  204. name: The name of metadata.
  205. char_set: The description of character encoding.
  206. content: The value of meta.
  207. property: The type of metadata value.
  208. http_equiv: The type of metadata value.
  209. style: The style of the component.
  210. key: A unique key for the component.
  211. id: The id for the component.
  212. class_name: The class name for the component.
  213. autofocus: Whether the component should take the focus once the page is loaded
  214. custom_attrs: custom attribute
  215. **props: The props of the component.
  216. Returns:
  217. The component.
  218. """
  219. ...
  220. class Image(Meta):
  221. @overload
  222. @classmethod
  223. def create( # type: ignore
  224. cls,
  225. *children,
  226. property: Optional[str] = None,
  227. char_set: Optional[str] = None,
  228. content: Optional[str] = None,
  229. name: Optional[str] = None,
  230. http_equiv: Optional[str] = None,
  231. style: Optional[Style] = None,
  232. key: Optional[Any] = None,
  233. id: Optional[Any] = None,
  234. class_name: Optional[Any] = None,
  235. autofocus: Optional[bool] = None,
  236. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  237. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  238. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  239. on_context_menu: Optional[
  240. Union[EventHandler, EventSpec, list, Callable, Var]
  241. ] = None,
  242. on_double_click: Optional[
  243. Union[EventHandler, EventSpec, list, Callable, Var]
  244. ] = None,
  245. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  246. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  247. on_mouse_down: Optional[
  248. Union[EventHandler, EventSpec, list, Callable, Var]
  249. ] = None,
  250. on_mouse_enter: Optional[
  251. Union[EventHandler, EventSpec, list, Callable, Var]
  252. ] = None,
  253. on_mouse_leave: Optional[
  254. Union[EventHandler, EventSpec, list, Callable, Var]
  255. ] = None,
  256. on_mouse_move: Optional[
  257. Union[EventHandler, EventSpec, list, Callable, Var]
  258. ] = None,
  259. on_mouse_out: Optional[
  260. Union[EventHandler, EventSpec, list, Callable, Var]
  261. ] = None,
  262. on_mouse_over: Optional[
  263. Union[EventHandler, EventSpec, list, Callable, Var]
  264. ] = None,
  265. on_mouse_up: Optional[
  266. Union[EventHandler, EventSpec, list, Callable, Var]
  267. ] = None,
  268. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  269. on_unmount: Optional[
  270. Union[EventHandler, EventSpec, list, Callable, Var]
  271. ] = None,
  272. **props,
  273. ) -> "Image":
  274. """Create the component.
  275. Args:
  276. *children: The children of the component.
  277. property: The type of metadata value.
  278. char_set: The description of character encoding.
  279. content: The value of meta.
  280. name: The name of metadata.
  281. http_equiv: The type of metadata value.
  282. style: The style of the component.
  283. key: A unique key for the component.
  284. id: The id for the component.
  285. class_name: The class name for the component.
  286. autofocus: Whether the component should take the focus once the page is loaded
  287. custom_attrs: custom attribute
  288. **props: The props of the component.
  289. Returns:
  290. The component.
  291. """
  292. ...