meta.pyi 13 KB

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