1
0

spacer.pyi 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. """Stub file for reflex/components/radix/themes/layout/spacer.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.components.core.breakpoints import Breakpoints
  7. from reflex.event import BASE_STATE, EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. from .flex import Flex
  11. class Spacer(Flex):
  12. def add_style(self) -> dict[str, Any] | None: ...
  13. @overload
  14. @classmethod
  15. def create( # type: ignore
  16. cls,
  17. *children,
  18. as_child: Optional[Union[Var[bool], bool]] = None,
  19. direction: Optional[
  20. Union[
  21. Breakpoints[
  22. str, Literal["column", "column-reverse", "row", "row-reverse"]
  23. ],
  24. Literal["column", "column-reverse", "row", "row-reverse"],
  25. Var[
  26. Union[
  27. Breakpoints[
  28. str,
  29. Literal["column", "column-reverse", "row", "row-reverse"],
  30. ],
  31. Literal["column", "column-reverse", "row", "row-reverse"],
  32. ]
  33. ],
  34. ]
  35. ] = None,
  36. align: Optional[
  37. Union[
  38. Breakpoints[
  39. str, Literal["baseline", "center", "end", "start", "stretch"]
  40. ],
  41. Literal["baseline", "center", "end", "start", "stretch"],
  42. Var[
  43. Union[
  44. Breakpoints[
  45. str,
  46. Literal["baseline", "center", "end", "start", "stretch"],
  47. ],
  48. Literal["baseline", "center", "end", "start", "stretch"],
  49. ]
  50. ],
  51. ]
  52. ] = None,
  53. justify: Optional[
  54. Union[
  55. Breakpoints[str, Literal["between", "center", "end", "start"]],
  56. Literal["between", "center", "end", "start"],
  57. Var[
  58. Union[
  59. Breakpoints[str, Literal["between", "center", "end", "start"]],
  60. Literal["between", "center", "end", "start"],
  61. ]
  62. ],
  63. ]
  64. ] = None,
  65. wrap: Optional[
  66. Union[
  67. Breakpoints[str, Literal["nowrap", "wrap", "wrap-reverse"]],
  68. Literal["nowrap", "wrap", "wrap-reverse"],
  69. Var[
  70. Union[
  71. Breakpoints[str, Literal["nowrap", "wrap", "wrap-reverse"]],
  72. Literal["nowrap", "wrap", "wrap-reverse"],
  73. ]
  74. ],
  75. ]
  76. ] = None,
  77. spacing: Optional[
  78. Union[
  79. Breakpoints[
  80. str, Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  81. ],
  82. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  83. Var[
  84. Union[
  85. Breakpoints[
  86. str,
  87. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  88. ],
  89. Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
  90. ]
  91. ],
  92. ]
  93. ] = None,
  94. access_key: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  95. auto_capitalize: Optional[
  96. Union[Var[Union[bool, int, str]], bool, int, str]
  97. ] = None,
  98. content_editable: Optional[
  99. Union[Var[Union[bool, int, str]], bool, int, str]
  100. ] = None,
  101. context_menu: Optional[
  102. Union[Var[Union[bool, int, str]], bool, int, str]
  103. ] = None,
  104. dir: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  105. draggable: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  106. enter_key_hint: Optional[
  107. Union[Var[Union[bool, int, str]], bool, int, str]
  108. ] = None,
  109. hidden: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  110. input_mode: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  111. item_prop: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  112. lang: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  113. role: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  114. slot: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  115. spell_check: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  116. tab_index: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  117. title: Optional[Union[Var[Union[bool, int, str]], bool, int, str]] = None,
  118. style: Optional[Style] = None,
  119. key: Optional[Any] = None,
  120. id: Optional[Any] = None,
  121. class_name: Optional[Any] = None,
  122. autofocus: Optional[bool] = None,
  123. custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
  124. on_blur: Optional[EventType[[], BASE_STATE]] = None,
  125. on_click: Optional[EventType[[], BASE_STATE]] = None,
  126. on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
  127. on_double_click: Optional[EventType[[], BASE_STATE]] = None,
  128. on_focus: Optional[EventType[[], BASE_STATE]] = None,
  129. on_mount: Optional[EventType[[], BASE_STATE]] = None,
  130. on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
  131. on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
  132. on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
  133. on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
  134. on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
  135. on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
  136. on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
  137. on_scroll: Optional[EventType[[], BASE_STATE]] = None,
  138. on_unmount: Optional[EventType[[], BASE_STATE]] = None,
  139. **props,
  140. ) -> "Spacer":
  141. """Create a new component instance.
  142. Will prepend "RadixThemes" to the component tag to avoid conflicts with
  143. other UI libraries for common names, like Text and Button.
  144. Args:
  145. *children: Child components.
  146. as_child: Change the default rendered element for the one passed as a child, merging their props and behavior.
  147. direction: How child items are layed out: "row" | "column" | "row-reverse" | "column-reverse"
  148. align: Alignment of children along the main axis: "start" | "center" | "end" | "baseline" | "stretch"
  149. justify: Alignment of children along the cross axis: "start" | "center" | "end" | "between"
  150. wrap: Whether children should wrap when they reach the end of their container: "nowrap" | "wrap" | "wrap-reverse"
  151. spacing: Gap between children: "0" - "9"
  152. access_key: Provides a hint for generating a keyboard shortcut for the current element.
  153. auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
  154. content_editable: Indicates whether the element's content is editable.
  155. context_menu: Defines the ID of a <menu> element which will serve as the element's context menu.
  156. dir: Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
  157. draggable: Defines whether the element can be dragged.
  158. enter_key_hint: Hints what media types the media element is able to play.
  159. hidden: Defines whether the element is hidden.
  160. input_mode: Defines the type of the element.
  161. item_prop: Defines the name of the element for metadata purposes.
  162. lang: Defines the language used in the element.
  163. role: Defines the role of the element.
  164. slot: Assigns a slot in a shadow DOM shadow tree to an element.
  165. spell_check: Defines whether the element may be checked for spelling errors.
  166. tab_index: Defines the position of the current element in the tabbing order.
  167. title: Defines a tooltip for the element.
  168. style: The style of the component.
  169. key: A unique key for the component.
  170. id: The id for the component.
  171. class_name: The class name for the component.
  172. autofocus: Whether the component should take the focus once the page is loaded
  173. custom_attrs: custom attribute
  174. **props: Component properties.
  175. Returns:
  176. A new component instance.
  177. """
  178. ...
  179. spacer = Spacer.create