reflex 0.3.9a3__py3-none-any.whl → 0.3.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of reflex might be problematic. Click here for more details.

Files changed (247) hide show
  1. reflex/__init__.py +3 -1
  2. reflex/__init__.pyi +3 -1
  3. reflex/app.py +116 -86
  4. reflex/compiler/compiler.py +110 -0
  5. reflex/compiler/utils.py +13 -12
  6. reflex/components/base/app_wrap.pyi +1 -0
  7. reflex/components/base/body.pyi +2 -0
  8. reflex/components/base/document.pyi +10 -0
  9. reflex/components/base/fragment.pyi +2 -0
  10. reflex/components/base/head.pyi +4 -0
  11. reflex/components/base/link.pyi +4 -0
  12. reflex/components/base/meta.pyi +8 -0
  13. reflex/components/base/script.pyi +2 -0
  14. reflex/components/chakra/base.pyi +7 -0
  15. reflex/components/chakra/datadisplay/badge.pyi +2 -0
  16. reflex/components/chakra/datadisplay/code.pyi +4 -0
  17. reflex/components/chakra/datadisplay/divider.pyi +2 -0
  18. reflex/components/chakra/datadisplay/keyboard_key.pyi +2 -0
  19. reflex/components/chakra/datadisplay/list.pyi +8 -0
  20. reflex/components/chakra/datadisplay/stat.pyi +12 -0
  21. reflex/components/chakra/datadisplay/table.pyi +18 -0
  22. reflex/components/chakra/datadisplay/tag.pyi +9 -0
  23. reflex/components/chakra/disclosure/accordion.pyi +10 -0
  24. reflex/components/chakra/disclosure/tabs.py +8 -0
  25. reflex/components/chakra/disclosure/tabs.pyi +10 -0
  26. reflex/components/chakra/disclosure/transition.pyi +12 -0
  27. reflex/components/chakra/disclosure/visuallyhidden.pyi +2 -0
  28. reflex/components/chakra/feedback/alert.pyi +8 -0
  29. reflex/components/chakra/feedback/circularprogress.pyi +4 -0
  30. reflex/components/chakra/feedback/progress.pyi +2 -0
  31. reflex/components/chakra/feedback/skeleton.pyi +6 -0
  32. reflex/components/chakra/feedback/spinner.pyi +2 -0
  33. reflex/components/chakra/forms/button.pyi +4 -0
  34. reflex/components/chakra/forms/checkbox.pyi +4 -0
  35. reflex/components/chakra/forms/colormodeswitch.pyi +7 -0
  36. reflex/components/chakra/forms/date_picker.pyi +2 -0
  37. reflex/components/chakra/forms/date_time_picker.pyi +2 -0
  38. reflex/components/chakra/forms/editable.pyi +8 -0
  39. reflex/components/chakra/forms/email.pyi +2 -0
  40. reflex/components/chakra/forms/form.pyi +10 -0
  41. reflex/components/chakra/forms/iconbutton.py +1 -0
  42. reflex/components/chakra/forms/iconbutton.pyi +2 -0
  43. reflex/components/chakra/forms/input.pyi +12 -0
  44. reflex/components/chakra/forms/numberinput.pyi +10 -0
  45. reflex/components/chakra/forms/password.pyi +2 -0
  46. reflex/components/chakra/forms/pininput.pyi +4 -0
  47. reflex/components/chakra/forms/radio.pyi +4 -0
  48. reflex/components/chakra/forms/rangeslider.pyi +8 -0
  49. reflex/components/chakra/forms/select.pyi +4 -0
  50. reflex/components/chakra/forms/slider.pyi +10 -0
  51. reflex/components/chakra/forms/switch.pyi +2 -0
  52. reflex/components/chakra/forms/textarea.pyi +2 -0
  53. reflex/components/chakra/forms/time_picker.pyi +2 -0
  54. reflex/components/chakra/layout/aspect_ratio.pyi +2 -0
  55. reflex/components/chakra/layout/box.pyi +2 -0
  56. reflex/components/chakra/layout/card.pyi +7 -0
  57. reflex/components/chakra/layout/center.pyi +6 -0
  58. reflex/components/chakra/layout/container.pyi +2 -0
  59. reflex/components/chakra/layout/flex.pyi +2 -0
  60. reflex/components/chakra/layout/grid.pyi +6 -0
  61. reflex/components/chakra/layout/html.pyi +2 -0
  62. reflex/components/chakra/layout/spacer.pyi +2 -0
  63. reflex/components/chakra/layout/stack.pyi +6 -0
  64. reflex/components/chakra/layout/wrap.pyi +4 -0
  65. reflex/components/chakra/media/avatar.pyi +6 -0
  66. reflex/components/chakra/media/icon.pyi +4 -0
  67. reflex/components/chakra/media/image.pyi +2 -0
  68. reflex/components/chakra/navigation/breadcrumb.pyi +8 -0
  69. reflex/components/chakra/navigation/link.pyi +2 -0
  70. reflex/components/chakra/navigation/linkoverlay.pyi +4 -0
  71. reflex/components/chakra/navigation/stepper.pyi +18 -0
  72. reflex/components/chakra/overlay/alertdialog.pyi +14 -0
  73. reflex/components/chakra/overlay/drawer.pyi +14 -0
  74. reflex/components/chakra/overlay/menu.pyi +16 -0
  75. reflex/components/chakra/overlay/modal.pyi +14 -0
  76. reflex/components/chakra/overlay/popover.pyi +18 -0
  77. reflex/components/chakra/overlay/tooltip.pyi +2 -0
  78. reflex/components/chakra/typography/heading.pyi +2 -0
  79. reflex/components/chakra/typography/highlight.pyi +2 -0
  80. reflex/components/chakra/typography/span.pyi +2 -0
  81. reflex/components/chakra/typography/text.pyi +2 -0
  82. reflex/components/component.py +41 -3
  83. reflex/components/core/__init__.py +2 -0
  84. reflex/components/core/banner.pyi +3 -0
  85. reflex/components/core/client_side_routing.pyi +4 -0
  86. reflex/components/core/colors.py +21 -0
  87. reflex/components/core/cond.py +11 -2
  88. reflex/components/core/debounce.pyi +1 -0
  89. reflex/components/core/layout/__init__.py +1 -0
  90. reflex/components/core/match.py +44 -18
  91. reflex/components/core/upload.py +8 -2
  92. reflex/components/core/upload.pyi +7 -1
  93. reflex/components/datadisplay/dataeditor.pyi +2 -0
  94. reflex/components/el/element.pyi +2 -0
  95. reflex/components/el/elements/base.pyi +2 -0
  96. reflex/components/el/elements/forms.py +3 -0
  97. reflex/components/el/elements/forms.pyi +32 -0
  98. reflex/components/el/elements/inline.pyi +56 -0
  99. reflex/components/el/elements/media.pyi +28 -0
  100. reflex/components/el/elements/metadata.pyi +10 -0
  101. reflex/components/el/elements/other.pyi +14 -0
  102. reflex/components/el/elements/scripts.pyi +6 -0
  103. reflex/components/el/elements/sectioning.pyi +30 -0
  104. reflex/components/el/elements/tables.pyi +20 -0
  105. reflex/components/el/elements/typography.pyi +30 -0
  106. reflex/components/gridjs/datatable.pyi +4 -0
  107. reflex/components/lucide/__init__.py +5 -0
  108. reflex/components/lucide/icon.py +1484 -0
  109. reflex/components/lucide/icon.pyi +1594 -0
  110. reflex/components/markdown/markdown.pyi +2 -0
  111. reflex/components/moment/moment.pyi +2 -0
  112. reflex/components/next/base.pyi +2 -0
  113. reflex/components/next/image.pyi +2 -0
  114. reflex/components/next/link.pyi +2 -0
  115. reflex/components/next/video.pyi +2 -0
  116. reflex/components/plotly/plotly.pyi +4 -0
  117. reflex/components/radix/primitives/__init__.py +10 -0
  118. reflex/components/radix/primitives/accordion.py +51 -32
  119. reflex/components/radix/primitives/accordion.pyi +16 -3
  120. reflex/components/radix/primitives/base.pyi +4 -0
  121. reflex/components/radix/primitives/drawer.py +240 -0
  122. reflex/components/radix/primitives/drawer.pyi +814 -0
  123. reflex/components/radix/primitives/form.py +40 -7
  124. reflex/components/radix/primitives/form.pyi +32 -10
  125. reflex/components/radix/primitives/progress.py +2 -2
  126. reflex/components/radix/primitives/progress.pyi +6 -0
  127. reflex/components/radix/primitives/slider.pyi +10 -0
  128. reflex/components/radix/themes/base.py +46 -12
  129. reflex/components/radix/themes/base.pyi +23 -9
  130. reflex/components/radix/themes/components/__init__.py +4 -2
  131. reflex/components/radix/themes/components/alertdialog.py +13 -12
  132. reflex/components/radix/themes/components/alertdialog.pyi +23 -351
  133. reflex/components/radix/themes/components/aspectratio.py +2 -5
  134. reflex/components/radix/themes/components/aspectratio.pyi +4 -51
  135. reflex/components/radix/themes/components/avatar.py +3 -4
  136. reflex/components/radix/themes/components/avatar.pyi +4 -57
  137. reflex/components/radix/themes/components/badge.py +3 -4
  138. reflex/components/radix/themes/components/badge.pyi +4 -56
  139. reflex/components/radix/themes/components/button.py +2 -3
  140. reflex/components/radix/themes/components/button.pyi +3 -51
  141. reflex/components/radix/themes/components/callout.py +9 -12
  142. reflex/components/radix/themes/components/callout.pyi +24 -217
  143. reflex/components/radix/themes/components/card.py +1 -2
  144. reflex/components/radix/themes/components/card.pyi +4 -51
  145. reflex/components/radix/themes/components/checkbox.py +11 -5
  146. reflex/components/radix/themes/components/checkbox.pyi +13 -112
  147. reflex/components/radix/themes/components/contextmenu.py +21 -21
  148. reflex/components/radix/themes/components/contextmenu.pyi +26 -401
  149. reflex/components/radix/themes/components/dialog.py +13 -16
  150. reflex/components/radix/themes/components/dialog.pyi +20 -303
  151. reflex/components/radix/themes/components/dropdownmenu.py +196 -32
  152. reflex/components/radix/themes/components/dropdownmenu.pyi +147 -389
  153. reflex/components/radix/themes/components/hovercard.py +5 -5
  154. reflex/components/radix/themes/components/hovercard.pyi +11 -151
  155. reflex/components/radix/themes/components/iconbutton.py +56 -4
  156. reflex/components/radix/themes/components/iconbutton.pyi +25 -71
  157. reflex/components/radix/themes/components/icons.pyi +4 -0
  158. reflex/components/radix/themes/components/inset.py +1 -2
  159. reflex/components/radix/themes/components/inset.pyi +4 -51
  160. reflex/components/radix/themes/components/popover.py +12 -12
  161. reflex/components/radix/themes/components/popover.pyi +14 -201
  162. reflex/components/radix/themes/components/radiogroup.py +47 -20
  163. reflex/components/radix/themes/components/radiogroup.pyi +26 -171
  164. reflex/components/radix/themes/components/scrollarea.py +2 -3
  165. reflex/components/radix/themes/components/scrollarea.pyi +4 -51
  166. reflex/components/radix/themes/components/select.py +28 -25
  167. reflex/components/radix/themes/components/select.pyi +43 -419
  168. reflex/components/radix/themes/components/separator.py +4 -5
  169. reflex/components/radix/themes/components/separator.pyi +5 -52
  170. reflex/components/radix/themes/components/slider.py +8 -5
  171. reflex/components/radix/themes/components/slider.pyi +9 -60
  172. reflex/components/radix/themes/components/switch.py +6 -4
  173. reflex/components/radix/themes/components/switch.pyi +5 -53
  174. reflex/components/radix/themes/components/table.py +14 -15
  175. reflex/components/radix/themes/components/table.pyi +22 -351
  176. reflex/components/radix/themes/components/tabs.py +9 -6
  177. reflex/components/radix/themes/components/tabs.pyi +18 -205
  178. reflex/components/radix/themes/components/textarea.py +2 -3
  179. reflex/components/radix/themes/components/textarea.pyi +10 -53
  180. reflex/components/radix/themes/components/textfield.py +105 -4
  181. reflex/components/radix/themes/components/textfield.pyi +200 -108
  182. reflex/components/radix/themes/components/tooltip.py +102 -2
  183. reflex/components/radix/themes/components/tooltip.pyi +66 -110
  184. reflex/components/radix/themes/layout/__init__.py +7 -0
  185. reflex/components/radix/themes/layout/base.pyi +2 -0
  186. reflex/components/radix/themes/layout/box.py +2 -2
  187. reflex/components/radix/themes/layout/box.pyi +4 -104
  188. reflex/components/radix/themes/layout/center.py +19 -0
  189. reflex/components/radix/themes/layout/center.pyi +261 -0
  190. reflex/components/radix/themes/layout/container.py +2 -2
  191. reflex/components/radix/themes/layout/container.pyi +4 -104
  192. reflex/components/radix/themes/layout/flex.py +2 -2
  193. reflex/components/radix/themes/layout/flex.pyi +4 -105
  194. reflex/components/radix/themes/layout/grid.pyi +2 -0
  195. reflex/components/radix/themes/layout/section.py +2 -2
  196. reflex/components/radix/themes/layout/section.pyi +4 -104
  197. reflex/components/radix/themes/layout/spacer.py +19 -0
  198. reflex/components/radix/themes/layout/spacer.pyi +261 -0
  199. reflex/components/radix/themes/layout/stack.py +60 -0
  200. reflex/components/radix/themes/layout/stack.pyi +537 -0
  201. reflex/components/radix/themes/typography/blockquote.py +2 -3
  202. reflex/components/radix/themes/typography/blockquote.pyi +4 -51
  203. reflex/components/radix/themes/typography/code.py +2 -3
  204. reflex/components/radix/themes/typography/code.pyi +4 -56
  205. reflex/components/radix/themes/typography/em.py +1 -2
  206. reflex/components/radix/themes/typography/em.pyi +4 -51
  207. reflex/components/radix/themes/typography/heading.py +2 -3
  208. reflex/components/radix/themes/typography/heading.pyi +4 -51
  209. reflex/components/radix/themes/typography/kbd.py +1 -2
  210. reflex/components/radix/themes/typography/kbd.pyi +4 -51
  211. reflex/components/radix/themes/typography/link.py +34 -3
  212. reflex/components/radix/themes/typography/link.pyi +41 -86
  213. reflex/components/radix/themes/typography/quote.py +1 -2
  214. reflex/components/radix/themes/typography/quote.pyi +4 -51
  215. reflex/components/radix/themes/typography/strong.py +1 -2
  216. reflex/components/radix/themes/typography/strong.pyi +4 -51
  217. reflex/components/radix/themes/typography/text.py +2 -3
  218. reflex/components/radix/themes/typography/text.pyi +4 -51
  219. reflex/components/radix/themes/typography.py +10 -11
  220. reflex/components/react_player/audio.pyi +2 -0
  221. reflex/components/react_player/react_player.pyi +2 -0
  222. reflex/components/react_player/video.pyi +2 -0
  223. reflex/components/recharts/cartesian.pyi +38 -0
  224. reflex/components/recharts/charts.pyi +22 -0
  225. reflex/components/recharts/general.pyi +10 -0
  226. reflex/components/recharts/polar.pyi +12 -0
  227. reflex/components/recharts/recharts.pyi +4 -0
  228. reflex/components/suneditor/editor.pyi +2 -0
  229. reflex/components/tags/tag.py +1 -1
  230. reflex/constants/base.py +5 -1
  231. reflex/constants/colors.py +80 -0
  232. reflex/constants/event.py +10 -1
  233. reflex/page.py +1 -1
  234. reflex/reflex.py +4 -0
  235. reflex/style.py +8 -3
  236. reflex/testing.py +21 -10
  237. reflex/utils/format.py +13 -9
  238. reflex/utils/prerequisites.py +41 -3
  239. reflex/utils/serializers.py +14 -0
  240. reflex/utils/telemetry.py +8 -2
  241. reflex/utils/types.py +36 -2
  242. reflex/vars.py +53 -18
  243. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/METADATA +1 -2
  244. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/RECORD +247 -233
  245. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/WHEEL +1 -1
  246. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/LICENSE +0 -0
  247. {reflex-0.3.9a3.dist-info → reflex-0.3.10.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,814 @@
1
+ """Stub file for reflex/components/radix/primitives/drawer.py"""
2
+ # ------------------- DO NOT EDIT ----------------------
3
+ # This file was generated by `scripts/pyi_generator.py`!
4
+ # ------------------------------------------------------
5
+
6
+ from typing import Any, Dict, Literal, Optional, Union, overload
7
+ from reflex.vars import Var, BaseVar, ComputedVar
8
+ from reflex.event import EventChain, EventHandler, EventSpec
9
+ from reflex.style import Style
10
+ from typing import Any, Dict, List, Literal, Optional, Union
11
+ from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName
12
+ from reflex.constants import EventTriggers
13
+ from reflex.vars import Var
14
+
15
+ class DrawerComponent(RadixPrimitiveComponentWithClassName):
16
+ @overload
17
+ @classmethod
18
+ def create( # type: ignore
19
+ cls,
20
+ *children,
21
+ as_child: Optional[Union[Var[bool], bool]] = None,
22
+ style: Optional[Style] = None,
23
+ key: Optional[Any] = None,
24
+ id: Optional[Any] = None,
25
+ class_name: Optional[Any] = None,
26
+ autofocus: Optional[bool] = None,
27
+ _rename_props: Optional[Dict[str, str]] = None,
28
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
29
+ on_blur: Optional[
30
+ Union[EventHandler, EventSpec, list, function, BaseVar]
31
+ ] = None,
32
+ on_click: Optional[
33
+ Union[EventHandler, EventSpec, list, function, BaseVar]
34
+ ] = None,
35
+ on_context_menu: Optional[
36
+ Union[EventHandler, EventSpec, list, function, BaseVar]
37
+ ] = None,
38
+ on_double_click: Optional[
39
+ Union[EventHandler, EventSpec, list, function, BaseVar]
40
+ ] = None,
41
+ on_focus: Optional[
42
+ Union[EventHandler, EventSpec, list, function, BaseVar]
43
+ ] = None,
44
+ on_mount: Optional[
45
+ Union[EventHandler, EventSpec, list, function, BaseVar]
46
+ ] = None,
47
+ on_mouse_down: Optional[
48
+ Union[EventHandler, EventSpec, list, function, BaseVar]
49
+ ] = None,
50
+ on_mouse_enter: Optional[
51
+ Union[EventHandler, EventSpec, list, function, BaseVar]
52
+ ] = None,
53
+ on_mouse_leave: Optional[
54
+ Union[EventHandler, EventSpec, list, function, BaseVar]
55
+ ] = None,
56
+ on_mouse_move: Optional[
57
+ Union[EventHandler, EventSpec, list, function, BaseVar]
58
+ ] = None,
59
+ on_mouse_out: Optional[
60
+ Union[EventHandler, EventSpec, list, function, BaseVar]
61
+ ] = None,
62
+ on_mouse_over: Optional[
63
+ Union[EventHandler, EventSpec, list, function, BaseVar]
64
+ ] = None,
65
+ on_mouse_up: Optional[
66
+ Union[EventHandler, EventSpec, list, function, BaseVar]
67
+ ] = None,
68
+ on_scroll: Optional[
69
+ Union[EventHandler, EventSpec, list, function, BaseVar]
70
+ ] = None,
71
+ on_unmount: Optional[
72
+ Union[EventHandler, EventSpec, list, function, BaseVar]
73
+ ] = None,
74
+ **props
75
+ ) -> "DrawerComponent":
76
+ """Create the component.
77
+
78
+ Args:
79
+ *children: The children of the component.
80
+ as_child: Change the default rendered element for the one passed as a child.
81
+ style: The style of the component.
82
+ key: A unique key for the component.
83
+ id: The id for the component.
84
+ class_name: The class name for the component.
85
+ autofocus: Whether the component should take the focus once the page is loaded
86
+ _rename_props: props to change the name of
87
+ custom_attrs: custom attribute
88
+ **props: The props of the component.
89
+
90
+ Returns:
91
+ The component.
92
+
93
+ Raises:
94
+ TypeError: If an invalid child is passed.
95
+ """
96
+ ...
97
+
98
+ LiteralDirectionType = Literal["top", "bottom", "left", "right"]
99
+
100
+ class DrawerRoot(DrawerComponent):
101
+ def get_event_triggers(self) -> Dict[str, Any]: ...
102
+ @overload
103
+ @classmethod
104
+ def create( # type: ignore
105
+ cls,
106
+ *children,
107
+ open: Optional[Union[Var[bool], bool]] = None,
108
+ should_scale_background: Optional[Union[Var[bool], bool]] = None,
109
+ close_threshold: Optional[Union[Var[float], float]] = None,
110
+ snap_points: Optional[List[Union[str, float]]] = None,
111
+ fade_from_index: Optional[Union[Var[int], int]] = None,
112
+ scroll_lock_timeout: Optional[Union[Var[int], int]] = None,
113
+ modal: Optional[Union[Var[bool], bool]] = None,
114
+ direction: Optional[
115
+ Union[
116
+ Var[Literal["top", "bottom", "left", "right"]],
117
+ Literal["top", "bottom", "left", "right"],
118
+ ]
119
+ ] = None,
120
+ preventScrollRestoration: Optional[Union[Var[bool], bool]] = None,
121
+ as_child: Optional[Union[Var[bool], bool]] = None,
122
+ style: Optional[Style] = None,
123
+ key: Optional[Any] = None,
124
+ id: Optional[Any] = None,
125
+ class_name: Optional[Any] = None,
126
+ autofocus: Optional[bool] = None,
127
+ _rename_props: Optional[Dict[str, str]] = None,
128
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
129
+ on_blur: Optional[
130
+ Union[EventHandler, EventSpec, list, function, BaseVar]
131
+ ] = None,
132
+ on_click: Optional[
133
+ Union[EventHandler, EventSpec, list, function, BaseVar]
134
+ ] = None,
135
+ on_context_menu: Optional[
136
+ Union[EventHandler, EventSpec, list, function, BaseVar]
137
+ ] = None,
138
+ on_double_click: Optional[
139
+ Union[EventHandler, EventSpec, list, function, BaseVar]
140
+ ] = None,
141
+ on_focus: Optional[
142
+ Union[EventHandler, EventSpec, list, function, BaseVar]
143
+ ] = None,
144
+ on_mount: Optional[
145
+ Union[EventHandler, EventSpec, list, function, BaseVar]
146
+ ] = None,
147
+ on_mouse_down: Optional[
148
+ Union[EventHandler, EventSpec, list, function, BaseVar]
149
+ ] = None,
150
+ on_mouse_enter: Optional[
151
+ Union[EventHandler, EventSpec, list, function, BaseVar]
152
+ ] = None,
153
+ on_mouse_leave: Optional[
154
+ Union[EventHandler, EventSpec, list, function, BaseVar]
155
+ ] = None,
156
+ on_mouse_move: Optional[
157
+ Union[EventHandler, EventSpec, list, function, BaseVar]
158
+ ] = None,
159
+ on_mouse_out: Optional[
160
+ Union[EventHandler, EventSpec, list, function, BaseVar]
161
+ ] = None,
162
+ on_mouse_over: Optional[
163
+ Union[EventHandler, EventSpec, list, function, BaseVar]
164
+ ] = None,
165
+ on_mouse_up: Optional[
166
+ Union[EventHandler, EventSpec, list, function, BaseVar]
167
+ ] = None,
168
+ on_open_change: Optional[
169
+ Union[EventHandler, EventSpec, list, function, BaseVar]
170
+ ] = None,
171
+ on_scroll: Optional[
172
+ Union[EventHandler, EventSpec, list, function, BaseVar]
173
+ ] = None,
174
+ on_unmount: Optional[
175
+ Union[EventHandler, EventSpec, list, function, BaseVar]
176
+ ] = None,
177
+ **props
178
+ ) -> "DrawerRoot":
179
+ """Create the component.
180
+
181
+ Args:
182
+ *children: The children of the component.
183
+ open: Whether the drawer is open or not.
184
+ should_scale_background: Enable background scaling, it requires an element with [vaul-drawer-wrapper] data attribute to scale its background.
185
+ close_threshold: Number between 0 and 1 that determines when the drawer should be closed.
186
+ snap_points: Array of numbers from 0 to 100 that corresponds to % of the screen a given snap point should take up. Should go from least visible. Also Accept px values, which doesn't take screen height into account.
187
+ fade_from_index: Index of a snapPoint from which the overlay fade should be applied. Defaults to the last snap point. TODO: will it accept -1 then?
188
+ scroll_lock_timeout: Duration for which the drawer is not draggable after scrolling content inside of the drawer. Defaults to 500ms
189
+ modal: When `False`, it allows to interact with elements outside of the drawer without closing it. Defaults to `True`.
190
+ direction: Direction of the drawer. Defaults to `"bottom"`
191
+ preventScrollRestoration: When `True`, it prevents scroll restoration when the drawer is closed after a navigation happens inside of it. Defaults to `True`.
192
+ as_child: Change the default rendered element for the one passed as a child.
193
+ style: The style of the component.
194
+ key: A unique key for the component.
195
+ id: The id for the component.
196
+ class_name: The class name for the component.
197
+ autofocus: Whether the component should take the focus once the page is loaded
198
+ _rename_props: props to change the name of
199
+ custom_attrs: custom attribute
200
+ **props: The props of the component.
201
+
202
+ Returns:
203
+ The component.
204
+
205
+ Raises:
206
+ TypeError: If an invalid child is passed.
207
+ """
208
+ ...
209
+
210
+ class DrawerTrigger(DrawerComponent):
211
+ @overload
212
+ @classmethod
213
+ def create( # type: ignore
214
+ cls,
215
+ *children,
216
+ as_child: Optional[Union[Var[bool], bool]] = None,
217
+ style: Optional[Style] = None,
218
+ key: Optional[Any] = None,
219
+ id: Optional[Any] = None,
220
+ class_name: Optional[Any] = None,
221
+ autofocus: Optional[bool] = None,
222
+ _rename_props: Optional[Dict[str, str]] = None,
223
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
224
+ on_blur: Optional[
225
+ Union[EventHandler, EventSpec, list, function, BaseVar]
226
+ ] = None,
227
+ on_click: Optional[
228
+ Union[EventHandler, EventSpec, list, function, BaseVar]
229
+ ] = None,
230
+ on_context_menu: Optional[
231
+ Union[EventHandler, EventSpec, list, function, BaseVar]
232
+ ] = None,
233
+ on_double_click: Optional[
234
+ Union[EventHandler, EventSpec, list, function, BaseVar]
235
+ ] = None,
236
+ on_focus: Optional[
237
+ Union[EventHandler, EventSpec, list, function, BaseVar]
238
+ ] = None,
239
+ on_mount: Optional[
240
+ Union[EventHandler, EventSpec, list, function, BaseVar]
241
+ ] = None,
242
+ on_mouse_down: Optional[
243
+ Union[EventHandler, EventSpec, list, function, BaseVar]
244
+ ] = None,
245
+ on_mouse_enter: Optional[
246
+ Union[EventHandler, EventSpec, list, function, BaseVar]
247
+ ] = None,
248
+ on_mouse_leave: Optional[
249
+ Union[EventHandler, EventSpec, list, function, BaseVar]
250
+ ] = None,
251
+ on_mouse_move: Optional[
252
+ Union[EventHandler, EventSpec, list, function, BaseVar]
253
+ ] = None,
254
+ on_mouse_out: Optional[
255
+ Union[EventHandler, EventSpec, list, function, BaseVar]
256
+ ] = None,
257
+ on_mouse_over: Optional[
258
+ Union[EventHandler, EventSpec, list, function, BaseVar]
259
+ ] = None,
260
+ on_mouse_up: Optional[
261
+ Union[EventHandler, EventSpec, list, function, BaseVar]
262
+ ] = None,
263
+ on_scroll: Optional[
264
+ Union[EventHandler, EventSpec, list, function, BaseVar]
265
+ ] = None,
266
+ on_unmount: Optional[
267
+ Union[EventHandler, EventSpec, list, function, BaseVar]
268
+ ] = None,
269
+ **props
270
+ ) -> "DrawerTrigger":
271
+ """Create the component.
272
+
273
+ Args:
274
+ *children: The children of the component.
275
+ as_child: Change the default rendered element for the one passed as a child.
276
+ style: The style of the component.
277
+ key: A unique key for the component.
278
+ id: The id for the component.
279
+ class_name: The class name for the component.
280
+ autofocus: Whether the component should take the focus once the page is loaded
281
+ _rename_props: props to change the name of
282
+ custom_attrs: custom attribute
283
+ **props: The props of the component.
284
+
285
+ Returns:
286
+ The component.
287
+
288
+ Raises:
289
+ TypeError: If an invalid child is passed.
290
+ """
291
+ ...
292
+
293
+ class DrawerPortal(DrawerComponent):
294
+ @overload
295
+ @classmethod
296
+ def create( # type: ignore
297
+ cls,
298
+ *children,
299
+ as_child: Optional[Union[Var[bool], bool]] = None,
300
+ style: Optional[Style] = None,
301
+ key: Optional[Any] = None,
302
+ id: Optional[Any] = None,
303
+ class_name: Optional[Any] = None,
304
+ autofocus: Optional[bool] = None,
305
+ _rename_props: Optional[Dict[str, str]] = None,
306
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
307
+ on_blur: Optional[
308
+ Union[EventHandler, EventSpec, list, function, BaseVar]
309
+ ] = None,
310
+ on_click: Optional[
311
+ Union[EventHandler, EventSpec, list, function, BaseVar]
312
+ ] = None,
313
+ on_context_menu: Optional[
314
+ Union[EventHandler, EventSpec, list, function, BaseVar]
315
+ ] = None,
316
+ on_double_click: Optional[
317
+ Union[EventHandler, EventSpec, list, function, BaseVar]
318
+ ] = None,
319
+ on_focus: Optional[
320
+ Union[EventHandler, EventSpec, list, function, BaseVar]
321
+ ] = None,
322
+ on_mount: Optional[
323
+ Union[EventHandler, EventSpec, list, function, BaseVar]
324
+ ] = None,
325
+ on_mouse_down: Optional[
326
+ Union[EventHandler, EventSpec, list, function, BaseVar]
327
+ ] = None,
328
+ on_mouse_enter: Optional[
329
+ Union[EventHandler, EventSpec, list, function, BaseVar]
330
+ ] = None,
331
+ on_mouse_leave: Optional[
332
+ Union[EventHandler, EventSpec, list, function, BaseVar]
333
+ ] = None,
334
+ on_mouse_move: Optional[
335
+ Union[EventHandler, EventSpec, list, function, BaseVar]
336
+ ] = None,
337
+ on_mouse_out: Optional[
338
+ Union[EventHandler, EventSpec, list, function, BaseVar]
339
+ ] = None,
340
+ on_mouse_over: Optional[
341
+ Union[EventHandler, EventSpec, list, function, BaseVar]
342
+ ] = None,
343
+ on_mouse_up: Optional[
344
+ Union[EventHandler, EventSpec, list, function, BaseVar]
345
+ ] = None,
346
+ on_scroll: Optional[
347
+ Union[EventHandler, EventSpec, list, function, BaseVar]
348
+ ] = None,
349
+ on_unmount: Optional[
350
+ Union[EventHandler, EventSpec, list, function, BaseVar]
351
+ ] = None,
352
+ **props
353
+ ) -> "DrawerPortal":
354
+ """Create the component.
355
+
356
+ Args:
357
+ *children: The children of the component.
358
+ as_child: Change the default rendered element for the one passed as a child.
359
+ style: The style of the component.
360
+ key: A unique key for the component.
361
+ id: The id for the component.
362
+ class_name: The class name for the component.
363
+ autofocus: Whether the component should take the focus once the page is loaded
364
+ _rename_props: props to change the name of
365
+ custom_attrs: custom attribute
366
+ **props: The props of the component.
367
+
368
+ Returns:
369
+ The component.
370
+
371
+ Raises:
372
+ TypeError: If an invalid child is passed.
373
+ """
374
+ ...
375
+
376
+ class DrawerContent(DrawerComponent):
377
+ def get_event_triggers(self) -> Dict[str, Any]: ...
378
+ @overload
379
+ @classmethod
380
+ def create( # type: ignore
381
+ cls,
382
+ *children,
383
+ as_child: Optional[Union[Var[bool], bool]] = None,
384
+ style: Optional[Style] = None,
385
+ key: Optional[Any] = None,
386
+ id: Optional[Any] = None,
387
+ class_name: Optional[Any] = None,
388
+ autofocus: Optional[bool] = None,
389
+ _rename_props: Optional[Dict[str, str]] = None,
390
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
391
+ on_blur: Optional[
392
+ Union[EventHandler, EventSpec, list, function, BaseVar]
393
+ ] = None,
394
+ on_click: Optional[
395
+ Union[EventHandler, EventSpec, list, function, BaseVar]
396
+ ] = None,
397
+ on_close_auto_focus: Optional[
398
+ Union[EventHandler, EventSpec, list, function, BaseVar]
399
+ ] = None,
400
+ on_context_menu: Optional[
401
+ Union[EventHandler, EventSpec, list, function, BaseVar]
402
+ ] = None,
403
+ on_double_click: Optional[
404
+ Union[EventHandler, EventSpec, list, function, BaseVar]
405
+ ] = None,
406
+ on_escape_key_down: Optional[
407
+ Union[EventHandler, EventSpec, list, function, BaseVar]
408
+ ] = None,
409
+ on_focus: Optional[
410
+ Union[EventHandler, EventSpec, list, function, BaseVar]
411
+ ] = None,
412
+ on_interact_outside: Optional[
413
+ Union[EventHandler, EventSpec, list, function, BaseVar]
414
+ ] = None,
415
+ on_mount: Optional[
416
+ Union[EventHandler, EventSpec, list, function, BaseVar]
417
+ ] = None,
418
+ on_mouse_down: Optional[
419
+ Union[EventHandler, EventSpec, list, function, BaseVar]
420
+ ] = None,
421
+ on_mouse_enter: Optional[
422
+ Union[EventHandler, EventSpec, list, function, BaseVar]
423
+ ] = None,
424
+ on_mouse_leave: Optional[
425
+ Union[EventHandler, EventSpec, list, function, BaseVar]
426
+ ] = None,
427
+ on_mouse_move: Optional[
428
+ Union[EventHandler, EventSpec, list, function, BaseVar]
429
+ ] = None,
430
+ on_mouse_out: Optional[
431
+ Union[EventHandler, EventSpec, list, function, BaseVar]
432
+ ] = None,
433
+ on_mouse_over: Optional[
434
+ Union[EventHandler, EventSpec, list, function, BaseVar]
435
+ ] = None,
436
+ on_mouse_up: Optional[
437
+ Union[EventHandler, EventSpec, list, function, BaseVar]
438
+ ] = None,
439
+ on_open_auto_focus: Optional[
440
+ Union[EventHandler, EventSpec, list, function, BaseVar]
441
+ ] = None,
442
+ on_pointer_down_outside: Optional[
443
+ Union[EventHandler, EventSpec, list, function, BaseVar]
444
+ ] = None,
445
+ on_scroll: Optional[
446
+ Union[EventHandler, EventSpec, list, function, BaseVar]
447
+ ] = None,
448
+ on_unmount: Optional[
449
+ Union[EventHandler, EventSpec, list, function, BaseVar]
450
+ ] = None,
451
+ **props
452
+ ) -> "DrawerContent":
453
+ """Create the component.
454
+
455
+ Args:
456
+ *children: The children of the component.
457
+ as_child: Change the default rendered element for the one passed as a child.
458
+ style: The style of the component.
459
+ key: A unique key for the component.
460
+ id: The id for the component.
461
+ class_name: The class name for the component.
462
+ autofocus: Whether the component should take the focus once the page is loaded
463
+ _rename_props: props to change the name of
464
+ custom_attrs: custom attribute
465
+ **props: The props of the component.
466
+
467
+ Returns:
468
+ The component.
469
+
470
+ Raises:
471
+ TypeError: If an invalid child is passed.
472
+ """
473
+ ...
474
+
475
+ class DrawerOverlay(DrawerComponent):
476
+ @overload
477
+ @classmethod
478
+ def create( # type: ignore
479
+ cls,
480
+ *children,
481
+ as_child: Optional[Union[Var[bool], bool]] = None,
482
+ style: Optional[Style] = None,
483
+ key: Optional[Any] = None,
484
+ id: Optional[Any] = None,
485
+ class_name: Optional[Any] = None,
486
+ autofocus: Optional[bool] = None,
487
+ _rename_props: Optional[Dict[str, str]] = None,
488
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
489
+ on_blur: Optional[
490
+ Union[EventHandler, EventSpec, list, function, BaseVar]
491
+ ] = None,
492
+ on_click: Optional[
493
+ Union[EventHandler, EventSpec, list, function, BaseVar]
494
+ ] = None,
495
+ on_context_menu: Optional[
496
+ Union[EventHandler, EventSpec, list, function, BaseVar]
497
+ ] = None,
498
+ on_double_click: Optional[
499
+ Union[EventHandler, EventSpec, list, function, BaseVar]
500
+ ] = None,
501
+ on_focus: Optional[
502
+ Union[EventHandler, EventSpec, list, function, BaseVar]
503
+ ] = None,
504
+ on_mount: Optional[
505
+ Union[EventHandler, EventSpec, list, function, BaseVar]
506
+ ] = None,
507
+ on_mouse_down: Optional[
508
+ Union[EventHandler, EventSpec, list, function, BaseVar]
509
+ ] = None,
510
+ on_mouse_enter: Optional[
511
+ Union[EventHandler, EventSpec, list, function, BaseVar]
512
+ ] = None,
513
+ on_mouse_leave: Optional[
514
+ Union[EventHandler, EventSpec, list, function, BaseVar]
515
+ ] = None,
516
+ on_mouse_move: Optional[
517
+ Union[EventHandler, EventSpec, list, function, BaseVar]
518
+ ] = None,
519
+ on_mouse_out: Optional[
520
+ Union[EventHandler, EventSpec, list, function, BaseVar]
521
+ ] = None,
522
+ on_mouse_over: Optional[
523
+ Union[EventHandler, EventSpec, list, function, BaseVar]
524
+ ] = None,
525
+ on_mouse_up: Optional[
526
+ Union[EventHandler, EventSpec, list, function, BaseVar]
527
+ ] = None,
528
+ on_scroll: Optional[
529
+ Union[EventHandler, EventSpec, list, function, BaseVar]
530
+ ] = None,
531
+ on_unmount: Optional[
532
+ Union[EventHandler, EventSpec, list, function, BaseVar]
533
+ ] = None,
534
+ **props
535
+ ) -> "DrawerOverlay":
536
+ """Create the component.
537
+
538
+ Args:
539
+ *children: The children of the component.
540
+ as_child: Change the default rendered element for the one passed as a child.
541
+ style: The style of the component.
542
+ key: A unique key for the component.
543
+ id: The id for the component.
544
+ class_name: The class name for the component.
545
+ autofocus: Whether the component should take the focus once the page is loaded
546
+ _rename_props: props to change the name of
547
+ custom_attrs: custom attribute
548
+ **props: The props of the component.
549
+
550
+ Returns:
551
+ The component.
552
+
553
+ Raises:
554
+ TypeError: If an invalid child is passed.
555
+ """
556
+ ...
557
+
558
+ class DrawerClose(DrawerComponent):
559
+ @overload
560
+ @classmethod
561
+ def create( # type: ignore
562
+ cls,
563
+ *children,
564
+ as_child: Optional[Union[Var[bool], bool]] = None,
565
+ style: Optional[Style] = None,
566
+ key: Optional[Any] = None,
567
+ id: Optional[Any] = None,
568
+ class_name: Optional[Any] = None,
569
+ autofocus: Optional[bool] = None,
570
+ _rename_props: Optional[Dict[str, str]] = None,
571
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
572
+ on_blur: Optional[
573
+ Union[EventHandler, EventSpec, list, function, BaseVar]
574
+ ] = None,
575
+ on_click: Optional[
576
+ Union[EventHandler, EventSpec, list, function, BaseVar]
577
+ ] = None,
578
+ on_context_menu: Optional[
579
+ Union[EventHandler, EventSpec, list, function, BaseVar]
580
+ ] = None,
581
+ on_double_click: Optional[
582
+ Union[EventHandler, EventSpec, list, function, BaseVar]
583
+ ] = None,
584
+ on_focus: Optional[
585
+ Union[EventHandler, EventSpec, list, function, BaseVar]
586
+ ] = None,
587
+ on_mount: Optional[
588
+ Union[EventHandler, EventSpec, list, function, BaseVar]
589
+ ] = None,
590
+ on_mouse_down: Optional[
591
+ Union[EventHandler, EventSpec, list, function, BaseVar]
592
+ ] = None,
593
+ on_mouse_enter: Optional[
594
+ Union[EventHandler, EventSpec, list, function, BaseVar]
595
+ ] = None,
596
+ on_mouse_leave: Optional[
597
+ Union[EventHandler, EventSpec, list, function, BaseVar]
598
+ ] = None,
599
+ on_mouse_move: Optional[
600
+ Union[EventHandler, EventSpec, list, function, BaseVar]
601
+ ] = None,
602
+ on_mouse_out: Optional[
603
+ Union[EventHandler, EventSpec, list, function, BaseVar]
604
+ ] = None,
605
+ on_mouse_over: Optional[
606
+ Union[EventHandler, EventSpec, list, function, BaseVar]
607
+ ] = None,
608
+ on_mouse_up: Optional[
609
+ Union[EventHandler, EventSpec, list, function, BaseVar]
610
+ ] = None,
611
+ on_scroll: Optional[
612
+ Union[EventHandler, EventSpec, list, function, BaseVar]
613
+ ] = None,
614
+ on_unmount: Optional[
615
+ Union[EventHandler, EventSpec, list, function, BaseVar]
616
+ ] = None,
617
+ **props
618
+ ) -> "DrawerClose":
619
+ """Create the component.
620
+
621
+ Args:
622
+ *children: The children of the component.
623
+ as_child: Change the default rendered element for the one passed as a child.
624
+ style: The style of the component.
625
+ key: A unique key for the component.
626
+ id: The id for the component.
627
+ class_name: The class name for the component.
628
+ autofocus: Whether the component should take the focus once the page is loaded
629
+ _rename_props: props to change the name of
630
+ custom_attrs: custom attribute
631
+ **props: The props of the component.
632
+
633
+ Returns:
634
+ The component.
635
+
636
+ Raises:
637
+ TypeError: If an invalid child is passed.
638
+ """
639
+ ...
640
+
641
+ class DrawerTitle(DrawerComponent):
642
+ @overload
643
+ @classmethod
644
+ def create( # type: ignore
645
+ cls,
646
+ *children,
647
+ as_child: Optional[Union[Var[bool], bool]] = None,
648
+ style: Optional[Style] = None,
649
+ key: Optional[Any] = None,
650
+ id: Optional[Any] = None,
651
+ class_name: Optional[Any] = None,
652
+ autofocus: Optional[bool] = None,
653
+ _rename_props: Optional[Dict[str, str]] = None,
654
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
655
+ on_blur: Optional[
656
+ Union[EventHandler, EventSpec, list, function, BaseVar]
657
+ ] = None,
658
+ on_click: Optional[
659
+ Union[EventHandler, EventSpec, list, function, BaseVar]
660
+ ] = None,
661
+ on_context_menu: Optional[
662
+ Union[EventHandler, EventSpec, list, function, BaseVar]
663
+ ] = None,
664
+ on_double_click: Optional[
665
+ Union[EventHandler, EventSpec, list, function, BaseVar]
666
+ ] = None,
667
+ on_focus: Optional[
668
+ Union[EventHandler, EventSpec, list, function, BaseVar]
669
+ ] = None,
670
+ on_mount: Optional[
671
+ Union[EventHandler, EventSpec, list, function, BaseVar]
672
+ ] = None,
673
+ on_mouse_down: Optional[
674
+ Union[EventHandler, EventSpec, list, function, BaseVar]
675
+ ] = None,
676
+ on_mouse_enter: Optional[
677
+ Union[EventHandler, EventSpec, list, function, BaseVar]
678
+ ] = None,
679
+ on_mouse_leave: Optional[
680
+ Union[EventHandler, EventSpec, list, function, BaseVar]
681
+ ] = None,
682
+ on_mouse_move: Optional[
683
+ Union[EventHandler, EventSpec, list, function, BaseVar]
684
+ ] = None,
685
+ on_mouse_out: Optional[
686
+ Union[EventHandler, EventSpec, list, function, BaseVar]
687
+ ] = None,
688
+ on_mouse_over: Optional[
689
+ Union[EventHandler, EventSpec, list, function, BaseVar]
690
+ ] = None,
691
+ on_mouse_up: Optional[
692
+ Union[EventHandler, EventSpec, list, function, BaseVar]
693
+ ] = None,
694
+ on_scroll: Optional[
695
+ Union[EventHandler, EventSpec, list, function, BaseVar]
696
+ ] = None,
697
+ on_unmount: Optional[
698
+ Union[EventHandler, EventSpec, list, function, BaseVar]
699
+ ] = None,
700
+ **props
701
+ ) -> "DrawerTitle":
702
+ """Create the component.
703
+
704
+ Args:
705
+ *children: The children of the component.
706
+ as_child: Change the default rendered element for the one passed as a child.
707
+ style: The style of the component.
708
+ key: A unique key for the component.
709
+ id: The id for the component.
710
+ class_name: The class name for the component.
711
+ autofocus: Whether the component should take the focus once the page is loaded
712
+ _rename_props: props to change the name of
713
+ custom_attrs: custom attribute
714
+ **props: The props of the component.
715
+
716
+ Returns:
717
+ The component.
718
+
719
+ Raises:
720
+ TypeError: If an invalid child is passed.
721
+ """
722
+ ...
723
+
724
+ class DrawerDescription(DrawerComponent):
725
+ @overload
726
+ @classmethod
727
+ def create( # type: ignore
728
+ cls,
729
+ *children,
730
+ as_child: Optional[Union[Var[bool], bool]] = None,
731
+ style: Optional[Style] = None,
732
+ key: Optional[Any] = None,
733
+ id: Optional[Any] = None,
734
+ class_name: Optional[Any] = None,
735
+ autofocus: Optional[bool] = None,
736
+ _rename_props: Optional[Dict[str, str]] = None,
737
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
738
+ on_blur: Optional[
739
+ Union[EventHandler, EventSpec, list, function, BaseVar]
740
+ ] = None,
741
+ on_click: Optional[
742
+ Union[EventHandler, EventSpec, list, function, BaseVar]
743
+ ] = None,
744
+ on_context_menu: Optional[
745
+ Union[EventHandler, EventSpec, list, function, BaseVar]
746
+ ] = None,
747
+ on_double_click: Optional[
748
+ Union[EventHandler, EventSpec, list, function, BaseVar]
749
+ ] = None,
750
+ on_focus: Optional[
751
+ Union[EventHandler, EventSpec, list, function, BaseVar]
752
+ ] = None,
753
+ on_mount: Optional[
754
+ Union[EventHandler, EventSpec, list, function, BaseVar]
755
+ ] = None,
756
+ on_mouse_down: Optional[
757
+ Union[EventHandler, EventSpec, list, function, BaseVar]
758
+ ] = None,
759
+ on_mouse_enter: Optional[
760
+ Union[EventHandler, EventSpec, list, function, BaseVar]
761
+ ] = None,
762
+ on_mouse_leave: Optional[
763
+ Union[EventHandler, EventSpec, list, function, BaseVar]
764
+ ] = None,
765
+ on_mouse_move: Optional[
766
+ Union[EventHandler, EventSpec, list, function, BaseVar]
767
+ ] = None,
768
+ on_mouse_out: Optional[
769
+ Union[EventHandler, EventSpec, list, function, BaseVar]
770
+ ] = None,
771
+ on_mouse_over: Optional[
772
+ Union[EventHandler, EventSpec, list, function, BaseVar]
773
+ ] = None,
774
+ on_mouse_up: Optional[
775
+ Union[EventHandler, EventSpec, list, function, BaseVar]
776
+ ] = None,
777
+ on_scroll: Optional[
778
+ Union[EventHandler, EventSpec, list, function, BaseVar]
779
+ ] = None,
780
+ on_unmount: Optional[
781
+ Union[EventHandler, EventSpec, list, function, BaseVar]
782
+ ] = None,
783
+ **props
784
+ ) -> "DrawerDescription":
785
+ """Create the component.
786
+
787
+ Args:
788
+ *children: The children of the component.
789
+ as_child: Change the default rendered element for the one passed as a child.
790
+ style: The style of the component.
791
+ key: A unique key for the component.
792
+ id: The id for the component.
793
+ class_name: The class name for the component.
794
+ autofocus: Whether the component should take the focus once the page is loaded
795
+ _rename_props: props to change the name of
796
+ custom_attrs: custom attribute
797
+ **props: The props of the component.
798
+
799
+ Returns:
800
+ The component.
801
+
802
+ Raises:
803
+ TypeError: If an invalid child is passed.
804
+ """
805
+ ...
806
+
807
+ drawer_root = DrawerRoot.create
808
+ drawer_trigger = DrawerTrigger.create
809
+ drawer_portal = DrawerPortal.create
810
+ drawer_content = DrawerContent.create
811
+ drawer_overlay = DrawerOverlay.create
812
+ drawer_close = DrawerClose.create
813
+ drawer_title = DrawerTitle.create
814
+ drawer_description = DrawerDescription.create