container.pyi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. """Stub file for reflex/components/radix/themes/layout/container.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.core.breakpoints import Breakpoints
  7. from reflex.components.el import elements
  8. from reflex.event import EventType
  9. from reflex.style import Style
  10. from reflex.vars.base import Var
  11. from ..base import RadixThemesComponent
  12. LiteralContainerSize = Literal["1", "2", "3", "4"]
  13. class Container(elements.Div, RadixThemesComponent):
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. padding: str | None = "16px",
  20. stack_children_full_width: bool | None = False,
  21. size: Breakpoints[str, Literal["1", "2", "3", "4"]]
  22. | Literal["1", "2", "3", "4"]
  23. | Var[
  24. Breakpoints[str, Literal["1", "2", "3", "4"]] | Literal["1", "2", "3", "4"]
  25. ]
  26. | None = None,
  27. access_key: Var[str] | str | None = None,
  28. auto_capitalize: Literal[
  29. "characters", "none", "off", "on", "sentences", "words"
  30. ]
  31. | Var[Literal["characters", "none", "off", "on", "sentences", "words"]]
  32. | None = None,
  33. content_editable: Literal["inherit", "plaintext-only", False, True]
  34. | Var[Literal["inherit", "plaintext-only", False, True]]
  35. | None = None,
  36. context_menu: Var[str] | str | None = None,
  37. dir: Var[str] | str | None = None,
  38. draggable: Var[bool] | bool | None = None,
  39. enter_key_hint: Literal[
  40. "done", "enter", "go", "next", "previous", "search", "send"
  41. ]
  42. | Var[Literal["done", "enter", "go", "next", "previous", "search", "send"]]
  43. | None = None,
  44. hidden: Var[bool] | bool | None = None,
  45. input_mode: Literal[
  46. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  47. ]
  48. | Var[
  49. Literal[
  50. "decimal", "email", "none", "numeric", "search", "tel", "text", "url"
  51. ]
  52. ]
  53. | None = None,
  54. item_prop: Var[str] | str | None = None,
  55. lang: Var[str] | str | None = None,
  56. role: Literal[
  57. "alert",
  58. "alertdialog",
  59. "application",
  60. "article",
  61. "banner",
  62. "button",
  63. "cell",
  64. "checkbox",
  65. "columnheader",
  66. "combobox",
  67. "complementary",
  68. "contentinfo",
  69. "definition",
  70. "dialog",
  71. "directory",
  72. "document",
  73. "feed",
  74. "figure",
  75. "form",
  76. "grid",
  77. "gridcell",
  78. "group",
  79. "heading",
  80. "img",
  81. "link",
  82. "list",
  83. "listbox",
  84. "listitem",
  85. "log",
  86. "main",
  87. "marquee",
  88. "math",
  89. "menu",
  90. "menubar",
  91. "menuitem",
  92. "menuitemcheckbox",
  93. "menuitemradio",
  94. "navigation",
  95. "none",
  96. "note",
  97. "option",
  98. "presentation",
  99. "progressbar",
  100. "radio",
  101. "radiogroup",
  102. "region",
  103. "row",
  104. "rowgroup",
  105. "rowheader",
  106. "scrollbar",
  107. "search",
  108. "searchbox",
  109. "separator",
  110. "slider",
  111. "spinbutton",
  112. "status",
  113. "switch",
  114. "tab",
  115. "table",
  116. "tablist",
  117. "tabpanel",
  118. "term",
  119. "textbox",
  120. "timer",
  121. "toolbar",
  122. "tooltip",
  123. "tree",
  124. "treegrid",
  125. "treeitem",
  126. ]
  127. | Var[
  128. Literal[
  129. "alert",
  130. "alertdialog",
  131. "application",
  132. "article",
  133. "banner",
  134. "button",
  135. "cell",
  136. "checkbox",
  137. "columnheader",
  138. "combobox",
  139. "complementary",
  140. "contentinfo",
  141. "definition",
  142. "dialog",
  143. "directory",
  144. "document",
  145. "feed",
  146. "figure",
  147. "form",
  148. "grid",
  149. "gridcell",
  150. "group",
  151. "heading",
  152. "img",
  153. "link",
  154. "list",
  155. "listbox",
  156. "listitem",
  157. "log",
  158. "main",
  159. "marquee",
  160. "math",
  161. "menu",
  162. "menubar",
  163. "menuitem",
  164. "menuitemcheckbox",
  165. "menuitemradio",
  166. "navigation",
  167. "none",
  168. "note",
  169. "option",
  170. "presentation",
  171. "progressbar",
  172. "radio",
  173. "radiogroup",
  174. "region",
  175. "row",
  176. "rowgroup",
  177. "rowheader",
  178. "scrollbar",
  179. "search",
  180. "searchbox",
  181. "separator",
  182. "slider",
  183. "spinbutton",
  184. "status",
  185. "switch",
  186. "tab",
  187. "table",
  188. "tablist",
  189. "tabpanel",
  190. "term",
  191. "textbox",
  192. "timer",
  193. "toolbar",
  194. "tooltip",
  195. "tree",
  196. "treegrid",
  197. "treeitem",
  198. ]
  199. ]
  200. | None = None,
  201. slot: Var[str] | str | None = None,
  202. spell_check: Var[bool] | bool | None = None,
  203. tab_index: Var[int] | int | None = None,
  204. title: Var[str] | str | None = None,
  205. style: Style | None = None,
  206. key: Any | None = None,
  207. id: Any | None = None,
  208. class_name: Any | None = None,
  209. autofocus: bool | None = None,
  210. custom_attrs: dict[str, Var | Any] | None = None,
  211. on_blur: Optional[EventType[()]] = None,
  212. on_click: Optional[EventType[()]] = None,
  213. on_context_menu: Optional[EventType[()]] = None,
  214. on_double_click: Optional[EventType[()]] = None,
  215. on_focus: Optional[EventType[()]] = None,
  216. on_mount: Optional[EventType[()]] = None,
  217. on_mouse_down: Optional[EventType[()]] = None,
  218. on_mouse_enter: Optional[EventType[()]] = None,
  219. on_mouse_leave: Optional[EventType[()]] = None,
  220. on_mouse_move: Optional[EventType[()]] = None,
  221. on_mouse_out: Optional[EventType[()]] = None,
  222. on_mouse_over: Optional[EventType[()]] = None,
  223. on_mouse_up: Optional[EventType[()]] = None,
  224. on_scroll: Optional[EventType[()]] = None,
  225. on_unmount: Optional[EventType[()]] = None,
  226. **props,
  227. ) -> "Container":
  228. """Create the container component.
  229. Args:
  230. children: The children components.
  231. padding: The padding of the container.
  232. stack_children_full_width: If True, any vstack/hstack children will have 100% width.
  233. props: The properties of the container.
  234. Returns:
  235. The container component.
  236. """
  237. ...
  238. container = Container.create