reflex 0.3.5a4__py3-none-any.whl → 0.3.7__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 (138) hide show
  1. reflex/.templates/jinja/web/pages/base_page.js.jinja2 +2 -0
  2. reflex/.templates/web/utils/state.js +1 -1
  3. reflex/__init__.py +29 -6
  4. reflex/__init__.pyi +2 -0
  5. reflex/app.py +3 -0
  6. reflex/components/__init__.py +2 -0
  7. reflex/components/chakra/__init__.py +23 -0
  8. reflex/components/{media → chakra/media}/image.py +1 -28
  9. reflex/components/chakra/media/image.pyi +120 -0
  10. reflex/components/component.py +32 -4
  11. reflex/components/datadisplay/datatable.py +1 -37
  12. reflex/components/datadisplay/datatable.pyi +1 -11
  13. reflex/components/el/elements/forms.py +43 -1
  14. reflex/components/el/elements/forms.pyi +26 -1
  15. reflex/components/graphing/plotly.py +0 -22
  16. reflex/components/graphing/plotly.pyi +0 -12
  17. reflex/components/media/__init__.py +0 -1
  18. reflex/components/media/image.pyi +0 -9
  19. reflex/components/next/__init__.py +8 -0
  20. reflex/components/next/base.py +8 -0
  21. reflex/components/next/base.pyi +91 -0
  22. reflex/components/next/image.py +114 -0
  23. reflex/components/next/image.pyi +122 -0
  24. reflex/components/next/video.py +33 -0
  25. reflex/components/next/video.pyi +92 -0
  26. reflex/components/radix/primitives/__init__.py +3 -0
  27. reflex/components/radix/primitives/accordion.py +279 -0
  28. reflex/components/radix/primitives/accordion.pyi +619 -0
  29. reflex/components/radix/themes/__init__.py +4 -73
  30. reflex/components/radix/themes/base.py +7 -7
  31. reflex/components/radix/themes/base.pyi +21 -21
  32. reflex/components/radix/themes/components/__init__.py +193 -0
  33. reflex/components/radix/themes/components/alertdialog.py +72 -0
  34. reflex/components/radix/themes/components/alertdialog.pyi +733 -0
  35. reflex/components/radix/themes/components/aspectratio.py +20 -0
  36. reflex/components/radix/themes/components/aspectratio.pyi +144 -0
  37. reflex/components/radix/themes/components/avatar.py +38 -0
  38. reflex/components/radix/themes/components/avatar.pyi +233 -0
  39. reflex/components/radix/themes/components/badge.py +38 -0
  40. reflex/components/radix/themes/components/badge.pyi +291 -0
  41. reflex/components/radix/themes/components/button.py +39 -0
  42. reflex/components/radix/themes/components/button.pyi +330 -0
  43. reflex/components/radix/themes/components/callout.py +49 -0
  44. reflex/components/radix/themes/components/callout.pyi +668 -0
  45. reflex/components/radix/themes/components/card.py +25 -0
  46. reflex/components/radix/themes/components/card.pyi +214 -0
  47. reflex/components/radix/themes/components/checkbox.py +67 -0
  48. reflex/components/radix/themes/components/checkbox.pyi +249 -0
  49. reflex/components/radix/themes/components/contextmenu.py +134 -0
  50. reflex/components/radix/themes/{typography.pyi → components/contextmenu.pyi} +182 -602
  51. reflex/components/radix/themes/components/dialog.py +75 -0
  52. reflex/components/radix/themes/components/dialog.pyi +739 -0
  53. reflex/components/radix/themes/components/dropdownmenu.py +101 -0
  54. reflex/components/radix/themes/components/dropdownmenu.pyi +1065 -0
  55. reflex/components/radix/themes/components/hovercard.py +63 -0
  56. reflex/components/radix/themes/components/hovercard.pyi +487 -0
  57. reflex/components/radix/themes/components/iconbutton.py +39 -0
  58. reflex/components/radix/themes/components/iconbutton.pyi +332 -0
  59. reflex/components/radix/themes/components/icons.py +400 -0
  60. reflex/components/radix/themes/components/icons.pyi +185 -0
  61. reflex/components/radix/themes/components/inset.py +44 -0
  62. reflex/components/radix/themes/components/inset.pyi +230 -0
  63. reflex/components/radix/themes/components/popover.py +85 -0
  64. reflex/components/radix/themes/components/popover.pyi +634 -0
  65. reflex/components/radix/themes/components/radiogroup.py +72 -0
  66. reflex/components/radix/themes/components/radiogroup.pyi +369 -0
  67. reflex/components/radix/themes/components/scrollarea.py +31 -0
  68. reflex/components/radix/themes/components/scrollarea.pyi +165 -0
  69. reflex/components/radix/themes/components/select.py +137 -0
  70. reflex/components/radix/themes/{layout.pyi → components/select.pyi} +422 -418
  71. reflex/components/radix/themes/components/separator.py +30 -0
  72. reflex/components/radix/themes/components/separator.pyi +218 -0
  73. reflex/components/radix/themes/components/slider.py +68 -0
  74. reflex/components/radix/themes/components/slider.pyi +254 -0
  75. reflex/components/radix/themes/components/switch.py +68 -0
  76. reflex/components/radix/themes/components/switch.pyi +250 -0
  77. reflex/components/radix/themes/components/table.py +79 -0
  78. reflex/components/radix/themes/components/table.pyi +1485 -0
  79. reflex/components/radix/themes/components/tabs.py +65 -0
  80. reflex/components/radix/themes/components/tabs.pyi +549 -0
  81. reflex/components/radix/themes/components/textarea.py +68 -0
  82. reflex/components/radix/themes/components/textarea.pyi +333 -0
  83. reflex/components/radix/themes/{components.py → components/textfield.py} +3 -87
  84. reflex/components/radix/themes/{components.pyi → components/textfield.pyi} +202 -591
  85. reflex/components/radix/themes/layout/__init__.py +13 -0
  86. reflex/components/radix/themes/layout/base.py +48 -0
  87. reflex/components/radix/themes/layout/base.pyi +195 -0
  88. reflex/components/radix/themes/layout/box.py +12 -0
  89. reflex/components/radix/themes/layout/box.pyi +252 -0
  90. reflex/components/radix/themes/layout/container.py +23 -0
  91. reflex/components/radix/themes/layout/container.pyi +260 -0
  92. reflex/components/radix/themes/layout/flex.py +45 -0
  93. reflex/components/radix/themes/layout/flex.pyi +303 -0
  94. reflex/components/radix/themes/layout/grid.py +53 -0
  95. reflex/components/radix/themes/layout/grid.pyi +203 -0
  96. reflex/components/radix/themes/layout/section.py +20 -0
  97. reflex/components/radix/themes/layout/section.pyi +260 -0
  98. reflex/components/radix/themes/typography/__init__.py +21 -0
  99. reflex/components/radix/themes/typography/base.py +12 -0
  100. reflex/components/radix/themes/typography/blockquote.py +36 -0
  101. reflex/components/radix/themes/typography/blockquote.pyi +282 -0
  102. reflex/components/radix/themes/typography/code.py +40 -0
  103. reflex/components/radix/themes/typography/code.pyi +292 -0
  104. reflex/components/radix/themes/typography/em.py +18 -0
  105. reflex/components/radix/themes/typography/em.pyi +199 -0
  106. reflex/components/radix/themes/typography/heading.py +50 -0
  107. reflex/components/radix/themes/typography/heading.pyi +298 -0
  108. reflex/components/radix/themes/typography/kbd.py +25 -0
  109. reflex/components/radix/themes/typography/kbd.pyi +208 -0
  110. reflex/components/radix/themes/typography/link.py +49 -0
  111. reflex/components/radix/themes/typography/link.pyi +238 -0
  112. reflex/components/radix/themes/typography/quote.py +18 -0
  113. reflex/components/radix/themes/typography/quote.pyi +200 -0
  114. reflex/components/radix/themes/typography/strong.py +18 -0
  115. reflex/components/radix/themes/typography/strong.pyi +199 -0
  116. reflex/components/radix/themes/typography/text.py +50 -0
  117. reflex/components/radix/themes/typography/text.pyi +298 -0
  118. reflex/components/radix/themes/typography.py +1 -1
  119. reflex/constants/__init__.py +1 -0
  120. reflex/constants/base.py +7 -0
  121. reflex/constants/config.py +1 -1
  122. reflex/model.py +2 -1
  123. reflex/reflex.py +8 -1
  124. reflex/state.py +11 -0
  125. reflex/style.py +120 -10
  126. reflex/testing.py +4 -4
  127. reflex/utils/format.py +9 -5
  128. reflex/utils/prerequisites.py +49 -6
  129. reflex/utils/processes.py +8 -1
  130. reflex/utils/serializers.py +83 -0
  131. reflex/utils/types.py +22 -1
  132. reflex/vars.py +24 -1
  133. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/METADATA +3 -2
  134. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/RECORD +137 -44
  135. reflex/components/radix/themes/layout.py +0 -155
  136. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/LICENSE +0 -0
  137. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/WHEEL +0 -0
  138. {reflex-0.3.5a4.dist-info → reflex-0.3.7.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,1065 @@
1
+ """Stub file for reflex/components/radix/themes/components/dropdownmenu.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, Literal
11
+ from reflex.vars import Var
12
+ from ..base import CommonMarginProps, LiteralAccentColor, RadixThemesComponent
13
+
14
+ class DropdownMenuRoot(CommonMarginProps, RadixThemesComponent):
15
+ def get_event_triggers(self) -> Dict[str, Any]: ...
16
+ @overload
17
+ @classmethod
18
+ def create( # type: ignore
19
+ cls,
20
+ *children,
21
+ open: Optional[Union[Var[bool], bool]] = None,
22
+ modal: Optional[Union[Var[bool], bool]] = None,
23
+ m: Optional[
24
+ Union[
25
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
26
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
27
+ ]
28
+ ] = None,
29
+ mx: Optional[
30
+ Union[
31
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
32
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
33
+ ]
34
+ ] = None,
35
+ my: Optional[
36
+ Union[
37
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
38
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
39
+ ]
40
+ ] = None,
41
+ mt: Optional[
42
+ Union[
43
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
44
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
45
+ ]
46
+ ] = None,
47
+ mr: Optional[
48
+ Union[
49
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
50
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
51
+ ]
52
+ ] = None,
53
+ mb: Optional[
54
+ Union[
55
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
56
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
57
+ ]
58
+ ] = None,
59
+ ml: Optional[
60
+ Union[
61
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
62
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
63
+ ]
64
+ ] = None,
65
+ style: Optional[Style] = None,
66
+ key: Optional[Any] = None,
67
+ id: Optional[Any] = None,
68
+ class_name: Optional[Any] = None,
69
+ autofocus: Optional[bool] = None,
70
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
71
+ on_blur: Optional[
72
+ Union[EventHandler, EventSpec, list, function, BaseVar]
73
+ ] = None,
74
+ on_click: Optional[
75
+ Union[EventHandler, EventSpec, list, function, BaseVar]
76
+ ] = None,
77
+ on_context_menu: Optional[
78
+ Union[EventHandler, EventSpec, list, function, BaseVar]
79
+ ] = None,
80
+ on_double_click: Optional[
81
+ Union[EventHandler, EventSpec, list, function, BaseVar]
82
+ ] = None,
83
+ on_focus: Optional[
84
+ Union[EventHandler, EventSpec, list, function, BaseVar]
85
+ ] = None,
86
+ on_mount: Optional[
87
+ Union[EventHandler, EventSpec, list, function, BaseVar]
88
+ ] = None,
89
+ on_mouse_down: Optional[
90
+ Union[EventHandler, EventSpec, list, function, BaseVar]
91
+ ] = None,
92
+ on_mouse_enter: Optional[
93
+ Union[EventHandler, EventSpec, list, function, BaseVar]
94
+ ] = None,
95
+ on_mouse_leave: Optional[
96
+ Union[EventHandler, EventSpec, list, function, BaseVar]
97
+ ] = None,
98
+ on_mouse_move: Optional[
99
+ Union[EventHandler, EventSpec, list, function, BaseVar]
100
+ ] = None,
101
+ on_mouse_out: Optional[
102
+ Union[EventHandler, EventSpec, list, function, BaseVar]
103
+ ] = None,
104
+ on_mouse_over: Optional[
105
+ Union[EventHandler, EventSpec, list, function, BaseVar]
106
+ ] = None,
107
+ on_mouse_up: Optional[
108
+ Union[EventHandler, EventSpec, list, function, BaseVar]
109
+ ] = None,
110
+ on_open_change: Optional[
111
+ Union[EventHandler, EventSpec, list, function, BaseVar]
112
+ ] = None,
113
+ on_scroll: Optional[
114
+ Union[EventHandler, EventSpec, list, function, BaseVar]
115
+ ] = None,
116
+ on_unmount: Optional[
117
+ Union[EventHandler, EventSpec, list, function, BaseVar]
118
+ ] = None,
119
+ **props
120
+ ) -> "DropdownMenuRoot":
121
+ """Create a new component instance.
122
+
123
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
124
+ other UI libraries for common names, like Text and Button.
125
+
126
+ Args:
127
+ *children: Child components.
128
+ open: The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange.
129
+ modal: The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
130
+ m: Margin: "0" - "9"
131
+ mx: Margin horizontal: "0" - "9"
132
+ my: Margin vertical: "0" - "9"
133
+ mt: Margin top: "0" - "9"
134
+ mr: Margin right: "0" - "9"
135
+ mb: Margin bottom: "0" - "9"
136
+ ml: Margin left: "0" - "9"
137
+ style: The style of the component.
138
+ key: A unique key for the component.
139
+ id: The id for the component.
140
+ class_name: The class name for the component.
141
+ autofocus: Whether the component should take the focus once the page is loaded
142
+ custom_attrs: custom attribute
143
+ **props: Component properties.
144
+
145
+ Returns:
146
+ A new component instance.
147
+ """
148
+ ...
149
+
150
+ class DropdownMenuTrigger(CommonMarginProps, RadixThemesComponent):
151
+ @overload
152
+ @classmethod
153
+ def create( # type: ignore
154
+ cls,
155
+ *children,
156
+ m: Optional[
157
+ Union[
158
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
159
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
160
+ ]
161
+ ] = None,
162
+ mx: Optional[
163
+ Union[
164
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
165
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
166
+ ]
167
+ ] = None,
168
+ my: Optional[
169
+ Union[
170
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
171
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
172
+ ]
173
+ ] = None,
174
+ mt: Optional[
175
+ Union[
176
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
177
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
178
+ ]
179
+ ] = None,
180
+ mr: Optional[
181
+ Union[
182
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
183
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
184
+ ]
185
+ ] = None,
186
+ mb: Optional[
187
+ Union[
188
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
189
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
190
+ ]
191
+ ] = None,
192
+ ml: Optional[
193
+ Union[
194
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
195
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
196
+ ]
197
+ ] = None,
198
+ style: Optional[Style] = None,
199
+ key: Optional[Any] = None,
200
+ id: Optional[Any] = None,
201
+ class_name: Optional[Any] = None,
202
+ autofocus: Optional[bool] = None,
203
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
204
+ on_blur: Optional[
205
+ Union[EventHandler, EventSpec, list, function, BaseVar]
206
+ ] = None,
207
+ on_click: Optional[
208
+ Union[EventHandler, EventSpec, list, function, BaseVar]
209
+ ] = None,
210
+ on_context_menu: Optional[
211
+ Union[EventHandler, EventSpec, list, function, BaseVar]
212
+ ] = None,
213
+ on_double_click: Optional[
214
+ Union[EventHandler, EventSpec, list, function, BaseVar]
215
+ ] = None,
216
+ on_focus: Optional[
217
+ Union[EventHandler, EventSpec, list, function, BaseVar]
218
+ ] = None,
219
+ on_mount: Optional[
220
+ Union[EventHandler, EventSpec, list, function, BaseVar]
221
+ ] = None,
222
+ on_mouse_down: Optional[
223
+ Union[EventHandler, EventSpec, list, function, BaseVar]
224
+ ] = None,
225
+ on_mouse_enter: Optional[
226
+ Union[EventHandler, EventSpec, list, function, BaseVar]
227
+ ] = None,
228
+ on_mouse_leave: Optional[
229
+ Union[EventHandler, EventSpec, list, function, BaseVar]
230
+ ] = None,
231
+ on_mouse_move: Optional[
232
+ Union[EventHandler, EventSpec, list, function, BaseVar]
233
+ ] = None,
234
+ on_mouse_out: Optional[
235
+ Union[EventHandler, EventSpec, list, function, BaseVar]
236
+ ] = None,
237
+ on_mouse_over: Optional[
238
+ Union[EventHandler, EventSpec, list, function, BaseVar]
239
+ ] = None,
240
+ on_mouse_up: Optional[
241
+ Union[EventHandler, EventSpec, list, function, BaseVar]
242
+ ] = None,
243
+ on_scroll: Optional[
244
+ Union[EventHandler, EventSpec, list, function, BaseVar]
245
+ ] = None,
246
+ on_unmount: Optional[
247
+ Union[EventHandler, EventSpec, list, function, BaseVar]
248
+ ] = None,
249
+ **props
250
+ ) -> "DropdownMenuTrigger":
251
+ """Create a new component instance.
252
+
253
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
254
+ other UI libraries for common names, like Text and Button.
255
+
256
+ Args:
257
+ *children: Child components.
258
+ m: Margin: "0" - "9"
259
+ mx: Margin horizontal: "0" - "9"
260
+ my: Margin vertical: "0" - "9"
261
+ mt: Margin top: "0" - "9"
262
+ mr: Margin right: "0" - "9"
263
+ mb: Margin bottom: "0" - "9"
264
+ ml: Margin left: "0" - "9"
265
+ style: The style of the component.
266
+ key: A unique key for the component.
267
+ id: The id for the component.
268
+ class_name: The class name for the component.
269
+ autofocus: Whether the component should take the focus once the page is loaded
270
+ custom_attrs: custom attribute
271
+ **props: Component properties.
272
+
273
+ Returns:
274
+ A new component instance.
275
+ """
276
+ ...
277
+
278
+ class DropdownMenuContent(CommonMarginProps, RadixThemesComponent):
279
+ def get_event_triggers(self) -> Dict[str, Any]: ...
280
+ @overload
281
+ @classmethod
282
+ def create( # type: ignore
283
+ cls,
284
+ *children,
285
+ m: Optional[
286
+ Union[
287
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
288
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
289
+ ]
290
+ ] = None,
291
+ mx: Optional[
292
+ Union[
293
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
294
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
295
+ ]
296
+ ] = None,
297
+ my: Optional[
298
+ Union[
299
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
300
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
301
+ ]
302
+ ] = None,
303
+ mt: Optional[
304
+ Union[
305
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
306
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
307
+ ]
308
+ ] = None,
309
+ mr: Optional[
310
+ Union[
311
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
312
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
313
+ ]
314
+ ] = None,
315
+ mb: Optional[
316
+ Union[
317
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
318
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
319
+ ]
320
+ ] = None,
321
+ ml: Optional[
322
+ Union[
323
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
324
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
325
+ ]
326
+ ] = None,
327
+ style: Optional[Style] = None,
328
+ key: Optional[Any] = None,
329
+ id: Optional[Any] = None,
330
+ class_name: Optional[Any] = None,
331
+ autofocus: Optional[bool] = None,
332
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
333
+ on_blur: Optional[
334
+ Union[EventHandler, EventSpec, list, function, BaseVar]
335
+ ] = None,
336
+ on_click: Optional[
337
+ Union[EventHandler, EventSpec, list, function, BaseVar]
338
+ ] = None,
339
+ on_close_auto_focus: Optional[
340
+ Union[EventHandler, EventSpec, list, function, BaseVar]
341
+ ] = None,
342
+ on_context_menu: Optional[
343
+ Union[EventHandler, EventSpec, list, function, BaseVar]
344
+ ] = None,
345
+ on_double_click: Optional[
346
+ Union[EventHandler, EventSpec, list, function, BaseVar]
347
+ ] = None,
348
+ on_escape_key_down: Optional[
349
+ Union[EventHandler, EventSpec, list, function, BaseVar]
350
+ ] = None,
351
+ on_focus: Optional[
352
+ Union[EventHandler, EventSpec, list, function, BaseVar]
353
+ ] = None,
354
+ on_interact_outside: Optional[
355
+ Union[EventHandler, EventSpec, list, function, BaseVar]
356
+ ] = None,
357
+ on_mount: Optional[
358
+ Union[EventHandler, EventSpec, list, function, BaseVar]
359
+ ] = None,
360
+ on_mouse_down: Optional[
361
+ Union[EventHandler, EventSpec, list, function, BaseVar]
362
+ ] = None,
363
+ on_mouse_enter: Optional[
364
+ Union[EventHandler, EventSpec, list, function, BaseVar]
365
+ ] = None,
366
+ on_mouse_leave: Optional[
367
+ Union[EventHandler, EventSpec, list, function, BaseVar]
368
+ ] = None,
369
+ on_mouse_move: Optional[
370
+ Union[EventHandler, EventSpec, list, function, BaseVar]
371
+ ] = None,
372
+ on_mouse_out: Optional[
373
+ Union[EventHandler, EventSpec, list, function, BaseVar]
374
+ ] = None,
375
+ on_mouse_over: Optional[
376
+ Union[EventHandler, EventSpec, list, function, BaseVar]
377
+ ] = None,
378
+ on_mouse_up: Optional[
379
+ Union[EventHandler, EventSpec, list, function, BaseVar]
380
+ ] = None,
381
+ on_pointer_down_outside: Optional[
382
+ Union[EventHandler, EventSpec, list, function, BaseVar]
383
+ ] = None,
384
+ on_scroll: Optional[
385
+ Union[EventHandler, EventSpec, list, function, BaseVar]
386
+ ] = None,
387
+ on_unmount: Optional[
388
+ Union[EventHandler, EventSpec, list, function, BaseVar]
389
+ ] = None,
390
+ **props
391
+ ) -> "DropdownMenuContent":
392
+ """Create a new component instance.
393
+
394
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
395
+ other UI libraries for common names, like Text and Button.
396
+
397
+ Args:
398
+ *children: Child components.
399
+ m: Margin: "0" - "9"
400
+ mx: Margin horizontal: "0" - "9"
401
+ my: Margin vertical: "0" - "9"
402
+ mt: Margin top: "0" - "9"
403
+ mr: Margin right: "0" - "9"
404
+ mb: Margin bottom: "0" - "9"
405
+ ml: Margin left: "0" - "9"
406
+ style: The style of the component.
407
+ key: A unique key for the component.
408
+ id: The id for the component.
409
+ class_name: The class name for the component.
410
+ autofocus: Whether the component should take the focus once the page is loaded
411
+ custom_attrs: custom attribute
412
+ **props: Component properties.
413
+
414
+ Returns:
415
+ A new component instance.
416
+ """
417
+ ...
418
+
419
+ class DropdownMenuSubTrigger(CommonMarginProps, RadixThemesComponent):
420
+ @overload
421
+ @classmethod
422
+ def create( # type: ignore
423
+ cls,
424
+ *children,
425
+ m: Optional[
426
+ Union[
427
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
428
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
429
+ ]
430
+ ] = None,
431
+ mx: Optional[
432
+ Union[
433
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
434
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
435
+ ]
436
+ ] = None,
437
+ my: Optional[
438
+ Union[
439
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
440
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
441
+ ]
442
+ ] = None,
443
+ mt: Optional[
444
+ Union[
445
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
446
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
447
+ ]
448
+ ] = None,
449
+ mr: Optional[
450
+ Union[
451
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
452
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
453
+ ]
454
+ ] = None,
455
+ mb: Optional[
456
+ Union[
457
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
458
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
459
+ ]
460
+ ] = None,
461
+ ml: Optional[
462
+ Union[
463
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
464
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
465
+ ]
466
+ ] = None,
467
+ style: Optional[Style] = None,
468
+ key: Optional[Any] = None,
469
+ id: Optional[Any] = None,
470
+ class_name: Optional[Any] = None,
471
+ autofocus: Optional[bool] = None,
472
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
473
+ on_blur: Optional[
474
+ Union[EventHandler, EventSpec, list, function, BaseVar]
475
+ ] = None,
476
+ on_click: Optional[
477
+ Union[EventHandler, EventSpec, list, function, BaseVar]
478
+ ] = None,
479
+ on_context_menu: Optional[
480
+ Union[EventHandler, EventSpec, list, function, BaseVar]
481
+ ] = None,
482
+ on_double_click: Optional[
483
+ Union[EventHandler, EventSpec, list, function, BaseVar]
484
+ ] = None,
485
+ on_focus: Optional[
486
+ Union[EventHandler, EventSpec, list, function, BaseVar]
487
+ ] = None,
488
+ on_mount: Optional[
489
+ Union[EventHandler, EventSpec, list, function, BaseVar]
490
+ ] = None,
491
+ on_mouse_down: Optional[
492
+ Union[EventHandler, EventSpec, list, function, BaseVar]
493
+ ] = None,
494
+ on_mouse_enter: Optional[
495
+ Union[EventHandler, EventSpec, list, function, BaseVar]
496
+ ] = None,
497
+ on_mouse_leave: Optional[
498
+ Union[EventHandler, EventSpec, list, function, BaseVar]
499
+ ] = None,
500
+ on_mouse_move: Optional[
501
+ Union[EventHandler, EventSpec, list, function, BaseVar]
502
+ ] = None,
503
+ on_mouse_out: Optional[
504
+ Union[EventHandler, EventSpec, list, function, BaseVar]
505
+ ] = None,
506
+ on_mouse_over: Optional[
507
+ Union[EventHandler, EventSpec, list, function, BaseVar]
508
+ ] = None,
509
+ on_mouse_up: Optional[
510
+ Union[EventHandler, EventSpec, list, function, BaseVar]
511
+ ] = None,
512
+ on_scroll: Optional[
513
+ Union[EventHandler, EventSpec, list, function, BaseVar]
514
+ ] = None,
515
+ on_unmount: Optional[
516
+ Union[EventHandler, EventSpec, list, function, BaseVar]
517
+ ] = None,
518
+ **props
519
+ ) -> "DropdownMenuSubTrigger":
520
+ """Create a new component instance.
521
+
522
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
523
+ other UI libraries for common names, like Text and Button.
524
+
525
+ Args:
526
+ *children: Child components.
527
+ m: Margin: "0" - "9"
528
+ mx: Margin horizontal: "0" - "9"
529
+ my: Margin vertical: "0" - "9"
530
+ mt: Margin top: "0" - "9"
531
+ mr: Margin right: "0" - "9"
532
+ mb: Margin bottom: "0" - "9"
533
+ ml: Margin left: "0" - "9"
534
+ style: The style of the component.
535
+ key: A unique key for the component.
536
+ id: The id for the component.
537
+ class_name: The class name for the component.
538
+ autofocus: Whether the component should take the focus once the page is loaded
539
+ custom_attrs: custom attribute
540
+ **props: Component properties.
541
+
542
+ Returns:
543
+ A new component instance.
544
+ """
545
+ ...
546
+
547
+ class DropdownMenuSubContent(CommonMarginProps, RadixThemesComponent):
548
+ @overload
549
+ @classmethod
550
+ def create( # type: ignore
551
+ cls,
552
+ *children,
553
+ size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None,
554
+ variant: Optional[
555
+ Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
556
+ ] = None,
557
+ color: Optional[
558
+ Union[
559
+ Var[
560
+ Literal[
561
+ "tomato",
562
+ "red",
563
+ "ruby",
564
+ "crimson",
565
+ "pink",
566
+ "plum",
567
+ "purple",
568
+ "violet",
569
+ "iris",
570
+ "indigo",
571
+ "blue",
572
+ "cyan",
573
+ "teal",
574
+ "jade",
575
+ "green",
576
+ "grass",
577
+ "brown",
578
+ "orange",
579
+ "sky",
580
+ "mint",
581
+ "lime",
582
+ "yellow",
583
+ "amber",
584
+ "gold",
585
+ "bronze",
586
+ "gray",
587
+ ]
588
+ ],
589
+ Literal[
590
+ "tomato",
591
+ "red",
592
+ "ruby",
593
+ "crimson",
594
+ "pink",
595
+ "plum",
596
+ "purple",
597
+ "violet",
598
+ "iris",
599
+ "indigo",
600
+ "blue",
601
+ "cyan",
602
+ "teal",
603
+ "jade",
604
+ "green",
605
+ "grass",
606
+ "brown",
607
+ "orange",
608
+ "sky",
609
+ "mint",
610
+ "lime",
611
+ "yellow",
612
+ "amber",
613
+ "gold",
614
+ "bronze",
615
+ "gray",
616
+ ],
617
+ ]
618
+ ] = None,
619
+ high_contrast: Optional[Union[Var[bool], bool]] = None,
620
+ m: Optional[
621
+ Union[
622
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
623
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
624
+ ]
625
+ ] = None,
626
+ mx: Optional[
627
+ Union[
628
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
629
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
630
+ ]
631
+ ] = None,
632
+ my: Optional[
633
+ Union[
634
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
635
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
636
+ ]
637
+ ] = None,
638
+ mt: Optional[
639
+ Union[
640
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
641
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
642
+ ]
643
+ ] = None,
644
+ mr: Optional[
645
+ Union[
646
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
647
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
648
+ ]
649
+ ] = None,
650
+ mb: Optional[
651
+ Union[
652
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
653
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
654
+ ]
655
+ ] = None,
656
+ ml: Optional[
657
+ Union[
658
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
659
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
660
+ ]
661
+ ] = None,
662
+ style: Optional[Style] = None,
663
+ key: Optional[Any] = None,
664
+ id: Optional[Any] = None,
665
+ class_name: Optional[Any] = None,
666
+ autofocus: Optional[bool] = None,
667
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
668
+ on_blur: Optional[
669
+ Union[EventHandler, EventSpec, list, function, BaseVar]
670
+ ] = None,
671
+ on_click: Optional[
672
+ Union[EventHandler, EventSpec, list, function, BaseVar]
673
+ ] = None,
674
+ on_context_menu: Optional[
675
+ Union[EventHandler, EventSpec, list, function, BaseVar]
676
+ ] = None,
677
+ on_double_click: Optional[
678
+ Union[EventHandler, EventSpec, list, function, BaseVar]
679
+ ] = None,
680
+ on_focus: Optional[
681
+ Union[EventHandler, EventSpec, list, function, BaseVar]
682
+ ] = None,
683
+ on_mount: Optional[
684
+ Union[EventHandler, EventSpec, list, function, BaseVar]
685
+ ] = None,
686
+ on_mouse_down: Optional[
687
+ Union[EventHandler, EventSpec, list, function, BaseVar]
688
+ ] = None,
689
+ on_mouse_enter: Optional[
690
+ Union[EventHandler, EventSpec, list, function, BaseVar]
691
+ ] = None,
692
+ on_mouse_leave: Optional[
693
+ Union[EventHandler, EventSpec, list, function, BaseVar]
694
+ ] = None,
695
+ on_mouse_move: Optional[
696
+ Union[EventHandler, EventSpec, list, function, BaseVar]
697
+ ] = None,
698
+ on_mouse_out: Optional[
699
+ Union[EventHandler, EventSpec, list, function, BaseVar]
700
+ ] = None,
701
+ on_mouse_over: Optional[
702
+ Union[EventHandler, EventSpec, list, function, BaseVar]
703
+ ] = None,
704
+ on_mouse_up: Optional[
705
+ Union[EventHandler, EventSpec, list, function, BaseVar]
706
+ ] = None,
707
+ on_scroll: Optional[
708
+ Union[EventHandler, EventSpec, list, function, BaseVar]
709
+ ] = None,
710
+ on_unmount: Optional[
711
+ Union[EventHandler, EventSpec, list, function, BaseVar]
712
+ ] = None,
713
+ **props
714
+ ) -> "DropdownMenuSubContent":
715
+ """Create a new component instance.
716
+
717
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
718
+ other UI libraries for common names, like Text and Button.
719
+
720
+ Args:
721
+ *children: Child components.
722
+ size: Button size "1" - "4"
723
+ variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
724
+ color: Override theme color for button
725
+ high_contrast: Whether to render the button with higher contrast color against background
726
+ m: Margin: "0" - "9"
727
+ mx: Margin horizontal: "0" - "9"
728
+ my: Margin vertical: "0" - "9"
729
+ mt: Margin top: "0" - "9"
730
+ mr: Margin right: "0" - "9"
731
+ mb: Margin bottom: "0" - "9"
732
+ ml: Margin left: "0" - "9"
733
+ style: The style of the component.
734
+ key: A unique key for the component.
735
+ id: The id for the component.
736
+ class_name: The class name for the component.
737
+ autofocus: Whether the component should take the focus once the page is loaded
738
+ custom_attrs: custom attribute
739
+ **props: Component properties.
740
+
741
+ Returns:
742
+ A new component instance.
743
+ """
744
+ ...
745
+
746
+ class DropdownMenuItem(CommonMarginProps, RadixThemesComponent):
747
+ @overload
748
+ @classmethod
749
+ def create( # type: ignore
750
+ cls,
751
+ *children,
752
+ color: Optional[
753
+ Union[
754
+ Var[
755
+ Literal[
756
+ "tomato",
757
+ "red",
758
+ "ruby",
759
+ "crimson",
760
+ "pink",
761
+ "plum",
762
+ "purple",
763
+ "violet",
764
+ "iris",
765
+ "indigo",
766
+ "blue",
767
+ "cyan",
768
+ "teal",
769
+ "jade",
770
+ "green",
771
+ "grass",
772
+ "brown",
773
+ "orange",
774
+ "sky",
775
+ "mint",
776
+ "lime",
777
+ "yellow",
778
+ "amber",
779
+ "gold",
780
+ "bronze",
781
+ "gray",
782
+ ]
783
+ ],
784
+ Literal[
785
+ "tomato",
786
+ "red",
787
+ "ruby",
788
+ "crimson",
789
+ "pink",
790
+ "plum",
791
+ "purple",
792
+ "violet",
793
+ "iris",
794
+ "indigo",
795
+ "blue",
796
+ "cyan",
797
+ "teal",
798
+ "jade",
799
+ "green",
800
+ "grass",
801
+ "brown",
802
+ "orange",
803
+ "sky",
804
+ "mint",
805
+ "lime",
806
+ "yellow",
807
+ "amber",
808
+ "gold",
809
+ "bronze",
810
+ "gray",
811
+ ],
812
+ ]
813
+ ] = None,
814
+ shortcut: Optional[Union[Var[str], str]] = None,
815
+ m: Optional[
816
+ Union[
817
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
818
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
819
+ ]
820
+ ] = None,
821
+ mx: Optional[
822
+ Union[
823
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
824
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
825
+ ]
826
+ ] = None,
827
+ my: Optional[
828
+ Union[
829
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
830
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
831
+ ]
832
+ ] = None,
833
+ mt: Optional[
834
+ Union[
835
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
836
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
837
+ ]
838
+ ] = None,
839
+ mr: Optional[
840
+ Union[
841
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
842
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
843
+ ]
844
+ ] = None,
845
+ mb: Optional[
846
+ Union[
847
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
848
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
849
+ ]
850
+ ] = None,
851
+ ml: Optional[
852
+ Union[
853
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
854
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
855
+ ]
856
+ ] = None,
857
+ style: Optional[Style] = None,
858
+ key: Optional[Any] = None,
859
+ id: Optional[Any] = None,
860
+ class_name: Optional[Any] = None,
861
+ autofocus: Optional[bool] = None,
862
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
863
+ on_blur: Optional[
864
+ Union[EventHandler, EventSpec, list, function, BaseVar]
865
+ ] = None,
866
+ on_click: Optional[
867
+ Union[EventHandler, EventSpec, list, function, BaseVar]
868
+ ] = None,
869
+ on_context_menu: Optional[
870
+ Union[EventHandler, EventSpec, list, function, BaseVar]
871
+ ] = None,
872
+ on_double_click: Optional[
873
+ Union[EventHandler, EventSpec, list, function, BaseVar]
874
+ ] = None,
875
+ on_focus: Optional[
876
+ Union[EventHandler, EventSpec, list, function, BaseVar]
877
+ ] = None,
878
+ on_mount: Optional[
879
+ Union[EventHandler, EventSpec, list, function, BaseVar]
880
+ ] = None,
881
+ on_mouse_down: Optional[
882
+ Union[EventHandler, EventSpec, list, function, BaseVar]
883
+ ] = None,
884
+ on_mouse_enter: Optional[
885
+ Union[EventHandler, EventSpec, list, function, BaseVar]
886
+ ] = None,
887
+ on_mouse_leave: Optional[
888
+ Union[EventHandler, EventSpec, list, function, BaseVar]
889
+ ] = None,
890
+ on_mouse_move: Optional[
891
+ Union[EventHandler, EventSpec, list, function, BaseVar]
892
+ ] = None,
893
+ on_mouse_out: Optional[
894
+ Union[EventHandler, EventSpec, list, function, BaseVar]
895
+ ] = None,
896
+ on_mouse_over: Optional[
897
+ Union[EventHandler, EventSpec, list, function, BaseVar]
898
+ ] = None,
899
+ on_mouse_up: Optional[
900
+ Union[EventHandler, EventSpec, list, function, BaseVar]
901
+ ] = None,
902
+ on_scroll: Optional[
903
+ Union[EventHandler, EventSpec, list, function, BaseVar]
904
+ ] = None,
905
+ on_unmount: Optional[
906
+ Union[EventHandler, EventSpec, list, function, BaseVar]
907
+ ] = None,
908
+ **props
909
+ ) -> "DropdownMenuItem":
910
+ """Create a new component instance.
911
+
912
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
913
+ other UI libraries for common names, like Text and Button.
914
+
915
+ Args:
916
+ *children: Child components.
917
+ color: Override theme color for button
918
+ shortcut: Shortcut to render a menu item as a link
919
+ m: Margin: "0" - "9"
920
+ mx: Margin horizontal: "0" - "9"
921
+ my: Margin vertical: "0" - "9"
922
+ mt: Margin top: "0" - "9"
923
+ mr: Margin right: "0" - "9"
924
+ mb: Margin bottom: "0" - "9"
925
+ ml: Margin left: "0" - "9"
926
+ style: The style of the component.
927
+ key: A unique key for the component.
928
+ id: The id for the component.
929
+ class_name: The class name for the component.
930
+ autofocus: Whether the component should take the focus once the page is loaded
931
+ custom_attrs: custom attribute
932
+ **props: Component properties.
933
+
934
+ Returns:
935
+ A new component instance.
936
+ """
937
+ ...
938
+
939
+ class DropdownMenuSeparator(CommonMarginProps, RadixThemesComponent):
940
+ @overload
941
+ @classmethod
942
+ def create( # type: ignore
943
+ cls,
944
+ *children,
945
+ m: Optional[
946
+ Union[
947
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
948
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
949
+ ]
950
+ ] = None,
951
+ mx: Optional[
952
+ Union[
953
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
954
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
955
+ ]
956
+ ] = None,
957
+ my: Optional[
958
+ Union[
959
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
960
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
961
+ ]
962
+ ] = None,
963
+ mt: Optional[
964
+ Union[
965
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
966
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
967
+ ]
968
+ ] = None,
969
+ mr: Optional[
970
+ Union[
971
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
972
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
973
+ ]
974
+ ] = None,
975
+ mb: Optional[
976
+ Union[
977
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
978
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
979
+ ]
980
+ ] = None,
981
+ ml: Optional[
982
+ Union[
983
+ Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
984
+ Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
985
+ ]
986
+ ] = None,
987
+ style: Optional[Style] = None,
988
+ key: Optional[Any] = None,
989
+ id: Optional[Any] = None,
990
+ class_name: Optional[Any] = None,
991
+ autofocus: Optional[bool] = None,
992
+ custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
993
+ on_blur: Optional[
994
+ Union[EventHandler, EventSpec, list, function, BaseVar]
995
+ ] = None,
996
+ on_click: Optional[
997
+ Union[EventHandler, EventSpec, list, function, BaseVar]
998
+ ] = None,
999
+ on_context_menu: Optional[
1000
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1001
+ ] = None,
1002
+ on_double_click: Optional[
1003
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1004
+ ] = None,
1005
+ on_focus: Optional[
1006
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1007
+ ] = None,
1008
+ on_mount: Optional[
1009
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1010
+ ] = None,
1011
+ on_mouse_down: Optional[
1012
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1013
+ ] = None,
1014
+ on_mouse_enter: Optional[
1015
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1016
+ ] = None,
1017
+ on_mouse_leave: Optional[
1018
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1019
+ ] = None,
1020
+ on_mouse_move: Optional[
1021
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1022
+ ] = None,
1023
+ on_mouse_out: Optional[
1024
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1025
+ ] = None,
1026
+ on_mouse_over: Optional[
1027
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1028
+ ] = None,
1029
+ on_mouse_up: Optional[
1030
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1031
+ ] = None,
1032
+ on_scroll: Optional[
1033
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1034
+ ] = None,
1035
+ on_unmount: Optional[
1036
+ Union[EventHandler, EventSpec, list, function, BaseVar]
1037
+ ] = None,
1038
+ **props
1039
+ ) -> "DropdownMenuSeparator":
1040
+ """Create a new component instance.
1041
+
1042
+ Will prepend "RadixThemes" to the component tag to avoid conflicts with
1043
+ other UI libraries for common names, like Text and Button.
1044
+
1045
+ Args:
1046
+ *children: Child components.
1047
+ m: Margin: "0" - "9"
1048
+ mx: Margin horizontal: "0" - "9"
1049
+ my: Margin vertical: "0" - "9"
1050
+ mt: Margin top: "0" - "9"
1051
+ mr: Margin right: "0" - "9"
1052
+ mb: Margin bottom: "0" - "9"
1053
+ ml: Margin left: "0" - "9"
1054
+ style: The style of the component.
1055
+ key: A unique key for the component.
1056
+ id: The id for the component.
1057
+ class_name: The class name for the component.
1058
+ autofocus: Whether the component should take the focus once the page is loaded
1059
+ custom_attrs: custom attribute
1060
+ **props: Component properties.
1061
+
1062
+ Returns:
1063
+ A new component instance.
1064
+ """
1065
+ ...