1
0

meta.pyi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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.ivars.base import ImmutableVar
  9. from reflex.style import Style
  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[ImmutableVar, str]]] = None,
  23. on_blur: Optional[
  24. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  25. ] = None,
  26. on_click: Optional[
  27. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  28. ] = None,
  29. on_context_menu: Optional[
  30. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  31. ] = None,
  32. on_double_click: Optional[
  33. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  34. ] = None,
  35. on_focus: Optional[
  36. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  37. ] = None,
  38. on_mount: Optional[
  39. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  40. ] = None,
  41. on_mouse_down: Optional[
  42. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  43. ] = None,
  44. on_mouse_enter: Optional[
  45. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  46. ] = None,
  47. on_mouse_leave: Optional[
  48. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  49. ] = None,
  50. on_mouse_move: Optional[
  51. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  52. ] = None,
  53. on_mouse_out: Optional[
  54. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  55. ] = None,
  56. on_mouse_over: Optional[
  57. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  58. ] = None,
  59. on_mouse_up: Optional[
  60. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  61. ] = None,
  62. on_scroll: Optional[
  63. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  64. ] = None,
  65. on_unmount: Optional[
  66. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  67. ] = None,
  68. **props,
  69. ) -> "Title":
  70. """Create the component.
  71. Args:
  72. *children: The children of the component.
  73. style: The style of the component.
  74. key: A unique key for the component.
  75. id: The id for the component.
  76. class_name: The class name for the component.
  77. autofocus: Whether the component should take the focus once the page is loaded
  78. custom_attrs: custom attribute
  79. **props: The props of the component.
  80. Returns:
  81. The component.
  82. """
  83. ...
  84. class Meta(Component):
  85. @overload
  86. @classmethod
  87. def create( # type: ignore
  88. cls,
  89. *children,
  90. char_set: Optional[str] = None,
  91. content: Optional[str] = None,
  92. name: Optional[str] = None,
  93. property: Optional[str] = None,
  94. http_equiv: Optional[str] = None,
  95. style: Optional[Style] = None,
  96. key: Optional[Any] = None,
  97. id: Optional[Any] = None,
  98. class_name: Optional[Any] = None,
  99. autofocus: Optional[bool] = None,
  100. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  101. on_blur: Optional[
  102. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  103. ] = None,
  104. on_click: Optional[
  105. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  106. ] = None,
  107. on_context_menu: Optional[
  108. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  109. ] = None,
  110. on_double_click: Optional[
  111. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  112. ] = None,
  113. on_focus: Optional[
  114. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  115. ] = None,
  116. on_mount: Optional[
  117. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  118. ] = None,
  119. on_mouse_down: Optional[
  120. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  121. ] = None,
  122. on_mouse_enter: Optional[
  123. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  124. ] = None,
  125. on_mouse_leave: Optional[
  126. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  127. ] = None,
  128. on_mouse_move: Optional[
  129. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  130. ] = None,
  131. on_mouse_out: Optional[
  132. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  133. ] = None,
  134. on_mouse_over: Optional[
  135. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  136. ] = None,
  137. on_mouse_up: Optional[
  138. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  139. ] = None,
  140. on_scroll: Optional[
  141. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  142. ] = None,
  143. on_unmount: Optional[
  144. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  145. ] = None,
  146. **props,
  147. ) -> "Meta":
  148. """Create the component.
  149. Args:
  150. *children: The children of the component.
  151. char_set: The description of character encoding.
  152. content: The value of meta.
  153. name: The name of metadata.
  154. property: The type of metadata value.
  155. http_equiv: The type of metadata value.
  156. style: The style of the component.
  157. key: A unique key for the component.
  158. id: The id for the component.
  159. class_name: The class name for the component.
  160. autofocus: Whether the component should take the focus once the page is loaded
  161. custom_attrs: custom attribute
  162. **props: The props of the component.
  163. Returns:
  164. The component.
  165. """
  166. ...
  167. class Description(Meta):
  168. @overload
  169. @classmethod
  170. def create( # type: ignore
  171. cls,
  172. *children,
  173. name: Optional[str] = None,
  174. char_set: Optional[str] = None,
  175. content: Optional[str] = None,
  176. property: Optional[str] = None,
  177. http_equiv: Optional[str] = None,
  178. style: Optional[Style] = None,
  179. key: Optional[Any] = None,
  180. id: Optional[Any] = None,
  181. class_name: Optional[Any] = None,
  182. autofocus: Optional[bool] = None,
  183. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  184. on_blur: Optional[
  185. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  186. ] = None,
  187. on_click: Optional[
  188. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  189. ] = None,
  190. on_context_menu: Optional[
  191. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  192. ] = None,
  193. on_double_click: Optional[
  194. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  195. ] = None,
  196. on_focus: Optional[
  197. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  198. ] = None,
  199. on_mount: Optional[
  200. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  201. ] = None,
  202. on_mouse_down: Optional[
  203. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  204. ] = None,
  205. on_mouse_enter: Optional[
  206. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  207. ] = None,
  208. on_mouse_leave: Optional[
  209. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  210. ] = None,
  211. on_mouse_move: Optional[
  212. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  213. ] = None,
  214. on_mouse_out: Optional[
  215. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  216. ] = None,
  217. on_mouse_over: Optional[
  218. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  219. ] = None,
  220. on_mouse_up: Optional[
  221. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  222. ] = None,
  223. on_scroll: Optional[
  224. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  225. ] = None,
  226. on_unmount: Optional[
  227. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  228. ] = None,
  229. **props,
  230. ) -> "Description":
  231. """Create the component.
  232. Args:
  233. *children: The children of the component.
  234. name: The name of metadata.
  235. char_set: The description of character encoding.
  236. content: The value of meta.
  237. property: The type of metadata value.
  238. http_equiv: The type of metadata value.
  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 Image(Meta):
  251. @overload
  252. @classmethod
  253. def create( # type: ignore
  254. cls,
  255. *children,
  256. property: Optional[str] = None,
  257. char_set: Optional[str] = None,
  258. content: Optional[str] = None,
  259. name: Optional[str] = None,
  260. http_equiv: Optional[str] = None,
  261. style: Optional[Style] = None,
  262. key: Optional[Any] = None,
  263. id: Optional[Any] = None,
  264. class_name: Optional[Any] = None,
  265. autofocus: Optional[bool] = None,
  266. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  267. on_blur: Optional[
  268. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  269. ] = None,
  270. on_click: Optional[
  271. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  272. ] = None,
  273. on_context_menu: Optional[
  274. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  275. ] = None,
  276. on_double_click: Optional[
  277. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  278. ] = None,
  279. on_focus: Optional[
  280. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  281. ] = None,
  282. on_mount: Optional[
  283. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  284. ] = None,
  285. on_mouse_down: Optional[
  286. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  287. ] = None,
  288. on_mouse_enter: Optional[
  289. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  290. ] = None,
  291. on_mouse_leave: Optional[
  292. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  293. ] = None,
  294. on_mouse_move: Optional[
  295. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  296. ] = None,
  297. on_mouse_out: Optional[
  298. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  299. ] = None,
  300. on_mouse_over: Optional[
  301. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  302. ] = None,
  303. on_mouse_up: Optional[
  304. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  305. ] = None,
  306. on_scroll: Optional[
  307. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  308. ] = None,
  309. on_unmount: Optional[
  310. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  311. ] = None,
  312. **props,
  313. ) -> "Image":
  314. """Create the component.
  315. Args:
  316. *children: The children of the component.
  317. property: The type of metadata value.
  318. char_set: The description of character encoding.
  319. content: The value of meta.
  320. name: The name of metadata.
  321. http_equiv: The type of metadata value.
  322. style: The style of the component.
  323. key: A unique key for the component.
  324. id: The id for the component.
  325. class_name: The class name for the component.
  326. autofocus: Whether the component should take the focus once the page is loaded
  327. custom_attrs: custom attribute
  328. **props: The props of the component.
  329. Returns:
  330. The component.
  331. """
  332. ...