reflex 0.6.4a2__py3-none-any.whl → 0.6.5__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 (228) hide show
  1. reflex/.templates/jinja/web/pages/custom_component.js.jinja2 +0 -14
  2. reflex/.templates/jinja/web/pages/utils.js.jinja2 +4 -8
  3. reflex/.templates/web/components/shiki/code.js +16 -11
  4. reflex/.templates/web/utils/state.js +29 -21
  5. reflex/__init__.py +4 -0
  6. reflex/__init__.pyi +4 -0
  7. reflex/app.py +148 -154
  8. reflex/app_mixins/lifespan.py +5 -1
  9. reflex/app_mixins/middleware.py +3 -1
  10. reflex/app_mixins/mixin.py +3 -2
  11. reflex/base.py +2 -4
  12. reflex/compiler/compiler.py +111 -37
  13. reflex/components/base/app_wrap.pyi +17 -17
  14. reflex/components/base/bare.py +72 -3
  15. reflex/components/base/body.pyi +17 -17
  16. reflex/components/base/document.pyi +81 -81
  17. reflex/components/base/error_boundary.pyi +25 -18
  18. reflex/components/base/fragment.pyi +17 -17
  19. reflex/components/base/head.pyi +33 -33
  20. reflex/components/base/link.pyi +33 -33
  21. reflex/components/base/meta.pyi +65 -65
  22. reflex/components/base/script.py +4 -4
  23. reflex/components/base/script.pyi +23 -20
  24. reflex/components/component.py +250 -31
  25. reflex/components/core/banner.py +1 -1
  26. reflex/components/core/banner.pyi +81 -81
  27. reflex/components/core/client_side_routing.pyi +33 -33
  28. reflex/components/core/clipboard.py +2 -2
  29. reflex/components/core/clipboard.pyi +24 -18
  30. reflex/components/core/debounce.py +2 -2
  31. reflex/components/core/debounce.pyi +18 -18
  32. reflex/components/core/html.pyi +17 -17
  33. reflex/components/core/upload.py +90 -28
  34. reflex/components/core/upload.pyi +128 -72
  35. reflex/components/datadisplay/code.py +55 -40
  36. reflex/components/datadisplay/code.pyi +46 -44
  37. reflex/components/datadisplay/dataeditor.py +21 -20
  38. reflex/components/datadisplay/dataeditor.pyi +103 -35
  39. reflex/components/datadisplay/shiki_code_block.py +60 -27
  40. reflex/components/datadisplay/shiki_code_block.pyi +86 -65
  41. reflex/components/dynamic.py +9 -5
  42. reflex/components/el/element.pyi +17 -17
  43. reflex/components/el/elements/base.pyi +17 -17
  44. reflex/components/el/elements/forms.py +12 -3
  45. reflex/components/el/elements/forms.pyi +293 -233
  46. reflex/components/el/elements/inline.pyi +449 -449
  47. reflex/components/el/elements/media.pyi +401 -401
  48. reflex/components/el/elements/metadata.pyi +97 -97
  49. reflex/components/el/elements/other.pyi +113 -113
  50. reflex/components/el/elements/scripts.pyi +49 -49
  51. reflex/components/el/elements/sectioning.pyi +241 -241
  52. reflex/components/el/elements/tables.pyi +161 -161
  53. reflex/components/el/elements/typography.pyi +241 -241
  54. reflex/components/gridjs/datatable.pyi +33 -33
  55. reflex/components/lucide/icon.py +1 -1
  56. reflex/components/lucide/icon.pyi +33 -33
  57. reflex/components/markdown/markdown.py +180 -49
  58. reflex/components/markdown/markdown.pyi +36 -19
  59. reflex/components/moment/moment.py +17 -21
  60. reflex/components/moment/moment.pyi +26 -21
  61. reflex/components/next/base.pyi +17 -17
  62. reflex/components/next/image.py +3 -3
  63. reflex/components/next/image.pyi +21 -19
  64. reflex/components/next/link.pyi +17 -17
  65. reflex/components/next/video.pyi +17 -17
  66. reflex/components/plotly/plotly.py +79 -78
  67. reflex/components/plotly/plotly.pyi +91 -41
  68. reflex/components/props.py +34 -0
  69. reflex/components/radix/primitives/accordion.py +15 -8
  70. reflex/components/radix/primitives/accordion.pyi +121 -118
  71. reflex/components/radix/primitives/base.pyi +33 -33
  72. reflex/components/radix/primitives/drawer.py +41 -20
  73. reflex/components/radix/primitives/drawer.pyi +279 -190
  74. reflex/components/radix/primitives/form.py +2 -2
  75. reflex/components/radix/primitives/form.pyi +200 -167
  76. reflex/components/radix/primitives/progress.pyi +81 -81
  77. reflex/components/radix/primitives/slider.pyi +89 -83
  78. reflex/components/radix/themes/base.py +30 -1
  79. reflex/components/radix/themes/base.pyi +286 -113
  80. reflex/components/radix/themes/color_mode.py +17 -9
  81. reflex/components/radix/themes/color_mode.pyi +68 -56
  82. reflex/components/radix/themes/components/alert_dialog.py +8 -5
  83. reflex/components/radix/themes/components/alert_dialog.pyi +125 -117
  84. reflex/components/radix/themes/components/aspect_ratio.pyi +17 -17
  85. reflex/components/radix/themes/components/avatar.py +1 -5
  86. reflex/components/radix/themes/components/avatar.pyi +17 -17
  87. reflex/components/radix/themes/components/badge.py +1 -5
  88. reflex/components/radix/themes/components/badge.pyi +17 -17
  89. reflex/components/radix/themes/components/button.pyi +18 -21
  90. reflex/components/radix/themes/components/callout.py +1 -4
  91. reflex/components/radix/themes/components/callout.pyi +81 -81
  92. reflex/components/radix/themes/components/card.py +1 -3
  93. reflex/components/radix/themes/components/card.pyi +17 -17
  94. reflex/components/radix/themes/components/checkbox.py +4 -8
  95. reflex/components/radix/themes/components/checkbox.pyi +61 -52
  96. reflex/components/radix/themes/components/checkbox_cards.pyi +33 -33
  97. reflex/components/radix/themes/components/checkbox_group.pyi +33 -33
  98. reflex/components/radix/themes/components/context_menu.py +121 -28
  99. reflex/components/radix/themes/components/context_menu.pyi +250 -147
  100. reflex/components/radix/themes/components/data_list.pyi +65 -65
  101. reflex/components/radix/themes/components/dialog.py +11 -11
  102. reflex/components/radix/themes/components/dialog.pyi +135 -120
  103. reflex/components/radix/themes/components/dropdown_menu.py +14 -25
  104. reflex/components/radix/themes/components/dropdown_menu.pyi +157 -145
  105. reflex/components/radix/themes/components/hover_card.py +19 -7
  106. reflex/components/radix/themes/components/hover_card.pyi +102 -67
  107. reflex/components/radix/themes/components/icon_button.pyi +18 -21
  108. reflex/components/radix/themes/components/inset.py +1 -3
  109. reflex/components/radix/themes/components/inset.pyi +17 -17
  110. reflex/components/radix/themes/components/popover.py +22 -13
  111. reflex/components/radix/themes/components/popover.pyi +98 -72
  112. reflex/components/radix/themes/components/progress.pyi +17 -17
  113. reflex/components/radix/themes/components/radio.pyi +17 -17
  114. reflex/components/radix/themes/components/radio_cards.py +2 -2
  115. reflex/components/radix/themes/components/radio_cards.pyi +37 -34
  116. reflex/components/radix/themes/components/radio_group.py +3 -7
  117. reflex/components/radix/themes/components/radio_group.pyi +69 -66
  118. reflex/components/radix/themes/components/scroll_area.py +1 -3
  119. reflex/components/radix/themes/components/scroll_area.pyi +17 -17
  120. reflex/components/radix/themes/components/segmented_control.pyi +37 -34
  121. reflex/components/radix/themes/components/select.py +7 -11
  122. reflex/components/radix/themes/components/select.pyi +175 -154
  123. reflex/components/radix/themes/components/separator.py +1 -4
  124. reflex/components/radix/themes/components/separator.pyi +17 -17
  125. reflex/components/radix/themes/components/skeleton.pyi +17 -17
  126. reflex/components/radix/themes/components/slider.py +12 -21
  127. reflex/components/radix/themes/components/slider.pyi +47 -25
  128. reflex/components/radix/themes/components/spinner.py +1 -4
  129. reflex/components/radix/themes/components/spinner.pyi +17 -17
  130. reflex/components/radix/themes/components/switch.py +3 -6
  131. reflex/components/radix/themes/components/switch.pyi +21 -18
  132. reflex/components/radix/themes/components/table.py +21 -5
  133. reflex/components/radix/themes/components/table.pyi +392 -116
  134. reflex/components/radix/themes/components/tabs.py +3 -6
  135. reflex/components/radix/themes/components/tabs.pyi +89 -83
  136. reflex/components/radix/themes/components/text_area.py +1 -5
  137. reflex/components/radix/themes/components/text_area.pyi +43 -20
  138. reflex/components/radix/themes/components/text_field.py +1 -5
  139. reflex/components/radix/themes/components/text_field.pyi +101 -55
  140. reflex/components/radix/themes/components/tooltip.py +5 -7
  141. reflex/components/radix/themes/components/tooltip.pyi +25 -22
  142. reflex/components/radix/themes/layout/base.py +2 -27
  143. reflex/components/radix/themes/layout/base.pyi +82 -82
  144. reflex/components/radix/themes/layout/box.pyi +17 -17
  145. reflex/components/radix/themes/layout/center.pyi +17 -17
  146. reflex/components/radix/themes/layout/container.pyi +17 -17
  147. reflex/components/radix/themes/layout/flex.py +1 -6
  148. reflex/components/radix/themes/layout/flex.pyi +17 -17
  149. reflex/components/radix/themes/layout/grid.py +1 -6
  150. reflex/components/radix/themes/layout/grid.pyi +17 -17
  151. reflex/components/radix/themes/layout/list.py +20 -15
  152. reflex/components/radix/themes/layout/list.pyi +175 -92
  153. reflex/components/radix/themes/layout/section.pyi +17 -17
  154. reflex/components/radix/themes/layout/spacer.pyi +17 -17
  155. reflex/components/radix/themes/layout/stack.py +6 -6
  156. reflex/components/radix/themes/layout/stack.pyi +91 -62
  157. reflex/components/radix/themes/typography/blockquote.py +2 -8
  158. reflex/components/radix/themes/typography/blockquote.pyi +17 -17
  159. reflex/components/radix/themes/typography/code.py +4 -10
  160. reflex/components/radix/themes/typography/code.pyi +19 -18
  161. reflex/components/radix/themes/typography/heading.py +4 -11
  162. reflex/components/radix/themes/typography/heading.pyi +19 -18
  163. reflex/components/radix/themes/typography/link.py +4 -10
  164. reflex/components/radix/themes/typography/link.pyi +19 -18
  165. reflex/components/radix/themes/typography/text.py +4 -11
  166. reflex/components/radix/themes/typography/text.pyi +115 -114
  167. reflex/components/react_player/audio.pyi +58 -33
  168. reflex/components/react_player/react_player.py +17 -17
  169. reflex/components/react_player/react_player.pyi +55 -33
  170. reflex/components/react_player/video.pyi +58 -33
  171. reflex/components/recharts/cartesian.py +45 -45
  172. reflex/components/recharts/cartesian.pyi +389 -304
  173. reflex/components/recharts/charts.py +22 -22
  174. reflex/components/recharts/charts.pyi +226 -179
  175. reflex/components/recharts/general.py +26 -27
  176. reflex/components/recharts/general.pyi +106 -99
  177. reflex/components/recharts/polar.py +33 -33
  178. reflex/components/recharts/polar.pyi +70 -64
  179. reflex/components/recharts/recharts.pyi +33 -33
  180. reflex/components/sonner/toast.py +9 -36
  181. reflex/components/sonner/toast.pyi +20 -24
  182. reflex/components/suneditor/editor.py +8 -8
  183. reflex/components/suneditor/editor.pyi +50 -25
  184. reflex/components/tags/iter_tag.py +1 -10
  185. reflex/components/tags/tag.py +1 -4
  186. reflex/config.py +252 -41
  187. reflex/constants/__init__.py +4 -16
  188. reflex/constants/base.py +7 -14
  189. reflex/constants/colors.py +0 -1
  190. reflex/constants/installer.py +12 -7
  191. reflex/constants/state.py +4 -0
  192. reflex/custom_components/custom_components.py +6 -6
  193. reflex/event.py +486 -241
  194. reflex/experimental/client_state.py +9 -9
  195. reflex/experimental/layout.py +2 -2
  196. reflex/experimental/layout.pyi +95 -87
  197. reflex/experimental/misc.py +1 -1
  198. reflex/istate/__init__.py +1 -0
  199. reflex/istate/proxy.py +33 -0
  200. reflex/istate/wrappers.py +27 -0
  201. reflex/model.py +7 -7
  202. reflex/page.py +2 -1
  203. reflex/reflex.py +142 -8
  204. reflex/state.py +133 -46
  205. reflex/testing.py +9 -7
  206. reflex/utils/console.py +0 -1
  207. reflex/utils/exceptions.py +31 -3
  208. reflex/utils/exec.py +33 -14
  209. reflex/utils/format.py +15 -12
  210. reflex/utils/net.py +1 -1
  211. reflex/utils/path_ops.py +2 -2
  212. reflex/utils/prerequisites.py +82 -46
  213. reflex/utils/pyi_generator.py +63 -20
  214. reflex/utils/registry.py +1 -1
  215. reflex/utils/serializers.py +75 -36
  216. reflex/utils/telemetry.py +3 -2
  217. reflex/utils/types.py +125 -10
  218. reflex/vars/base.py +131 -119
  219. reflex/vars/function.py +59 -12
  220. reflex/vars/number.py +3 -1
  221. reflex/vars/object.py +30 -24
  222. reflex/vars/sequence.py +7 -7
  223. {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/METADATA +3 -3
  224. reflex-0.6.5.dist-info/RECORD +394 -0
  225. reflex-0.6.4a2.dist-info/RECORD +0 -391
  226. {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/LICENSE +0 -0
  227. {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/WHEEL +0 -0
  228. {reflex-0.6.4a2.dist-info → reflex-0.6.5.dist-info}/entry_points.txt +0 -0
@@ -7,12 +7,19 @@ from typing import Any, Dict, Literal, Optional, Union, overload
7
7
 
8
8
  from reflex.components.component import ComponentNamespace
9
9
  from reflex.components.core.breakpoints import Breakpoints
10
- from reflex.event import EventType
10
+ from reflex.event import BASE_STATE, EventType
11
11
  from reflex.style import Style
12
12
  from reflex.vars.base import Var
13
13
 
14
14
  from ..base import RadixThemesComponent
15
15
 
16
+ LiteralDirType = Literal["ltr", "rtl"]
17
+ LiteralSizeType = Literal["1", "2"]
18
+ LiteralVariantType = Literal["solid", "soft"]
19
+ LiteralSideType = Literal["top", "right", "bottom", "left"]
20
+ LiteralAlignType = Literal["start", "center", "end"]
21
+ LiteralStickyType = Literal["partial", "always"]
22
+
16
23
  class ContextMenuRoot(RadixThemesComponent):
17
24
  @overload
18
25
  @classmethod
@@ -20,28 +27,31 @@ class ContextMenuRoot(RadixThemesComponent):
20
27
  cls,
21
28
  *children,
22
29
  modal: Optional[Union[Var[bool], bool]] = None,
30
+ dir: Optional[Union[Literal["ltr", "rtl"], Var[Literal["ltr", "rtl"]]]] = None,
23
31
  style: Optional[Style] = None,
24
32
  key: Optional[Any] = None,
25
33
  id: Optional[Any] = None,
26
34
  class_name: Optional[Any] = None,
27
35
  autofocus: Optional[bool] = None,
28
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
29
- on_blur: Optional[EventType[[]]] = None,
30
- on_click: Optional[EventType[[]]] = None,
31
- on_context_menu: Optional[EventType[[]]] = None,
32
- on_double_click: Optional[EventType[[]]] = None,
33
- on_focus: Optional[EventType[[]]] = None,
34
- on_mount: Optional[EventType[[]]] = None,
35
- on_mouse_down: Optional[EventType[[]]] = None,
36
- on_mouse_enter: Optional[EventType[[]]] = None,
37
- on_mouse_leave: Optional[EventType[[]]] = None,
38
- on_mouse_move: Optional[EventType[[]]] = None,
39
- on_mouse_out: Optional[EventType[[]]] = None,
40
- on_mouse_over: Optional[EventType[[]]] = None,
41
- on_mouse_up: Optional[EventType[[]]] = None,
42
- on_open_change: Optional[EventType[bool]] = None,
43
- on_scroll: Optional[EventType[[]]] = None,
44
- on_unmount: Optional[EventType[[]]] = None,
36
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
37
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
38
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
39
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
40
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
41
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
42
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
43
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
44
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
45
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
46
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
47
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
48
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
49
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
50
+ on_open_change: Optional[
51
+ Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
52
+ ] = None,
53
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
54
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
45
55
  **props,
46
56
  ) -> "ContextMenuRoot":
47
57
  """Create a new component instance.
@@ -52,6 +62,8 @@ class ContextMenuRoot(RadixThemesComponent):
52
62
  Args:
53
63
  *children: Child components.
54
64
  modal: The modality of the context menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.
65
+ on_open_change: Fired when the open state changes.
66
+ dir: The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
55
67
  style: The style of the component.
56
68
  key: A unique key for the component.
57
69
  id: The id for the component.
@@ -77,22 +89,22 @@ class ContextMenuTrigger(RadixThemesComponent):
77
89
  id: Optional[Any] = None,
78
90
  class_name: Optional[Any] = None,
79
91
  autofocus: Optional[bool] = None,
80
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
81
- on_blur: Optional[EventType[[]]] = None,
82
- on_click: Optional[EventType[[]]] = None,
83
- on_context_menu: Optional[EventType[[]]] = None,
84
- on_double_click: Optional[EventType[[]]] = None,
85
- on_focus: Optional[EventType[[]]] = None,
86
- on_mount: Optional[EventType[[]]] = None,
87
- on_mouse_down: Optional[EventType[[]]] = None,
88
- on_mouse_enter: Optional[EventType[[]]] = None,
89
- on_mouse_leave: Optional[EventType[[]]] = None,
90
- on_mouse_move: Optional[EventType[[]]] = None,
91
- on_mouse_out: Optional[EventType[[]]] = None,
92
- on_mouse_over: Optional[EventType[[]]] = None,
93
- on_mouse_up: Optional[EventType[[]]] = None,
94
- on_scroll: Optional[EventType[[]]] = None,
95
- on_unmount: Optional[EventType[[]]] = None,
92
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
93
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
94
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
95
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
96
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
97
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
98
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
99
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
100
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
101
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
102
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
103
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
104
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
105
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
106
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
107
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
96
108
  **props,
97
109
  ) -> "ContextMenuTrigger":
98
110
  """Create a new component instance.
@@ -195,34 +207,62 @@ class ContextMenuContent(RadixThemesComponent):
195
207
  ]
196
208
  ] = None,
197
209
  high_contrast: Optional[Union[Var[bool], bool]] = None,
198
- align_offset: Optional[Union[Var[int], int]] = None,
210
+ as_child: Optional[Union[Var[bool], bool]] = None,
211
+ loop: Optional[Union[Var[bool], bool]] = None,
212
+ force_mount: Optional[Union[Var[bool], bool]] = None,
213
+ side: Optional[
214
+ Union[
215
+ Literal["bottom", "left", "right", "top"],
216
+ Var[Literal["bottom", "left", "right", "top"]],
217
+ ]
218
+ ] = None,
219
+ side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
220
+ align: Optional[
221
+ Union[
222
+ Literal["center", "end", "start"],
223
+ Var[Literal["center", "end", "start"]],
224
+ ]
225
+ ] = None,
226
+ align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
199
227
  avoid_collisions: Optional[Union[Var[bool], bool]] = None,
228
+ collision_padding: Optional[
229
+ Union[
230
+ Dict[str, Union[float, int]],
231
+ Var[Union[Dict[str, Union[float, int]], float, int]],
232
+ float,
233
+ int,
234
+ ]
235
+ ] = None,
236
+ sticky: Optional[
237
+ Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
238
+ ] = None,
239
+ hide_when_detached: Optional[Union[Var[bool], bool]] = None,
200
240
  style: Optional[Style] = None,
201
241
  key: Optional[Any] = None,
202
242
  id: Optional[Any] = None,
203
243
  class_name: Optional[Any] = None,
204
244
  autofocus: Optional[bool] = None,
205
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
206
- on_blur: Optional[EventType[[]]] = None,
207
- on_click: Optional[EventType[[]]] = None,
208
- on_close_auto_focus: Optional[EventType[[]]] = None,
209
- on_context_menu: Optional[EventType[[]]] = None,
210
- on_double_click: Optional[EventType[[]]] = None,
211
- on_escape_key_down: Optional[EventType[[]]] = None,
212
- on_focus: Optional[EventType[[]]] = None,
213
- on_focus_outside: Optional[EventType[[]]] = None,
214
- on_interact_outside: Optional[EventType[[]]] = None,
215
- on_mount: Optional[EventType[[]]] = None,
216
- on_mouse_down: Optional[EventType[[]]] = None,
217
- on_mouse_enter: Optional[EventType[[]]] = None,
218
- on_mouse_leave: Optional[EventType[[]]] = None,
219
- on_mouse_move: Optional[EventType[[]]] = None,
220
- on_mouse_out: Optional[EventType[[]]] = None,
221
- on_mouse_over: Optional[EventType[[]]] = None,
222
- on_mouse_up: Optional[EventType[[]]] = None,
223
- on_pointer_down_outside: Optional[EventType[[]]] = None,
224
- on_scroll: Optional[EventType[[]]] = None,
225
- on_unmount: Optional[EventType[[]]] = None,
245
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
246
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
247
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
248
+ on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None,
249
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
250
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
251
+ on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None,
252
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
253
+ on_focus_outside: Optional[EventType[[], BASE_STATE]] = None,
254
+ on_interact_outside: Optional[EventType[[], BASE_STATE]] = None,
255
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
256
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
257
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
258
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
259
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
260
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
261
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
262
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
263
+ on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None,
264
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
265
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
226
266
  **props,
227
267
  ) -> "ContextMenuContent":
228
268
  """Create a new component instance.
@@ -232,12 +272,26 @@ class ContextMenuContent(RadixThemesComponent):
232
272
 
233
273
  Args:
234
274
  *children: Child components.
235
- size: Button size "1" - "4"
236
- variant: Variant of button: "solid" | "soft" | "outline" | "ghost"
237
- color_scheme: Override theme color for button
238
- high_contrast: Whether to render the button with higher contrast color against background
239
- align_offset: The vertical distance in pixels from the anchor.
240
- avoid_collisions: When true, overrides the side and aligns preferences to prevent collisions with boundary edges.
275
+ size: Dropdown Menu Content size "1" - "2"
276
+ variant: Variant of Dropdown Menu Content: "solid" | "soft"
277
+ color_scheme: Override theme color for Dropdown Menu Content
278
+ high_contrast: Renders the Dropdown Menu Content in higher contrast
279
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
280
+ loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
281
+ force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
282
+ side: The preferred side of the trigger to render against when open. Will be reversed when collisions occur and `avoid_collisions` is enabled.The position of the tooltip. Defaults to "top".
283
+ side_offset: The distance in pixels from the trigger. Defaults to 0.
284
+ align: The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
285
+ align_offset: An offset in pixels from the "start" or "end" alignment options.
286
+ avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
287
+ collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
288
+ sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
289
+ hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
290
+ on_close_auto_focus: Fired when focus moves back after closing.
291
+ on_escape_key_down: Fired when the escape key is pressed.
292
+ on_pointer_down_outside: Fired when a pointer down event happens outside the context menu.
293
+ on_focus_outside: Fired when focus moves outside the context menu.
294
+ on_interact_outside: Fired when the pointer interacts outside the context menu.
241
295
  style: The style of the component.
242
296
  key: A unique key for the component.
243
297
  id: The id for the component.
@@ -257,27 +311,32 @@ class ContextMenuSub(RadixThemesComponent):
257
311
  def create( # type: ignore
258
312
  cls,
259
313
  *children,
314
+ open: Optional[Union[Var[bool], bool]] = None,
315
+ default_open: Optional[Union[Var[bool], bool]] = None,
260
316
  style: Optional[Style] = None,
261
317
  key: Optional[Any] = None,
262
318
  id: Optional[Any] = None,
263
319
  class_name: Optional[Any] = None,
264
320
  autofocus: Optional[bool] = None,
265
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
266
- on_blur: Optional[EventType[[]]] = None,
267
- on_click: Optional[EventType[[]]] = None,
268
- on_context_menu: Optional[EventType[[]]] = None,
269
- on_double_click: Optional[EventType[[]]] = None,
270
- on_focus: Optional[EventType[[]]] = None,
271
- on_mount: Optional[EventType[[]]] = None,
272
- on_mouse_down: Optional[EventType[[]]] = None,
273
- on_mouse_enter: Optional[EventType[[]]] = None,
274
- on_mouse_leave: Optional[EventType[[]]] = None,
275
- on_mouse_move: Optional[EventType[[]]] = None,
276
- on_mouse_out: Optional[EventType[[]]] = None,
277
- on_mouse_over: Optional[EventType[[]]] = None,
278
- on_mouse_up: Optional[EventType[[]]] = None,
279
- on_scroll: Optional[EventType[[]]] = None,
280
- on_unmount: Optional[EventType[[]]] = None,
321
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
322
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
323
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
324
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
325
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
326
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
327
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
328
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
329
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
330
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
331
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
332
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
333
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
334
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
335
+ on_open_change: Optional[
336
+ Union[EventType[[], BASE_STATE], EventType[[bool], BASE_STATE]]
337
+ ] = None,
338
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
339
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
281
340
  **props,
282
341
  ) -> "ContextMenuSub":
283
342
  """Create a new component instance.
@@ -287,6 +346,9 @@ class ContextMenuSub(RadixThemesComponent):
287
346
 
288
347
  Args:
289
348
  *children: Child components.
349
+ open: The controlled open state of the submenu. Must be used in conjunction with `on_open_change`.
350
+ default_open: The open state of the submenu when it is initially rendered. Use when you do not need to control its open state.
351
+ on_open_change: Fired when the open state changes.
290
352
  style: The style of the component.
291
353
  key: A unique key for the component.
292
354
  id: The id for the component.
@@ -306,28 +368,30 @@ class ContextMenuSubTrigger(RadixThemesComponent):
306
368
  def create( # type: ignore
307
369
  cls,
308
370
  *children,
371
+ as_child: Optional[Union[Var[bool], bool]] = None,
309
372
  disabled: Optional[Union[Var[bool], bool]] = None,
373
+ text_value: Optional[Union[Var[str], str]] = None,
310
374
  style: Optional[Style] = None,
311
375
  key: Optional[Any] = None,
312
376
  id: Optional[Any] = None,
313
377
  class_name: Optional[Any] = None,
314
378
  autofocus: Optional[bool] = None,
315
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
316
- on_blur: Optional[EventType[[]]] = None,
317
- on_click: Optional[EventType[[]]] = None,
318
- on_context_menu: Optional[EventType[[]]] = None,
319
- on_double_click: Optional[EventType[[]]] = None,
320
- on_focus: Optional[EventType[[]]] = None,
321
- on_mount: Optional[EventType[[]]] = None,
322
- on_mouse_down: Optional[EventType[[]]] = None,
323
- on_mouse_enter: Optional[EventType[[]]] = None,
324
- on_mouse_leave: Optional[EventType[[]]] = None,
325
- on_mouse_move: Optional[EventType[[]]] = None,
326
- on_mouse_out: Optional[EventType[[]]] = None,
327
- on_mouse_over: Optional[EventType[[]]] = None,
328
- on_mouse_up: Optional[EventType[[]]] = None,
329
- on_scroll: Optional[EventType[[]]] = None,
330
- on_unmount: Optional[EventType[[]]] = None,
379
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
380
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
381
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
382
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
383
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
384
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
385
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
386
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
387
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
388
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
389
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
390
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
391
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
392
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
393
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
394
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
331
395
  **props,
332
396
  ) -> "ContextMenuSubTrigger":
333
397
  """Create a new component instance.
@@ -337,7 +401,9 @@ class ContextMenuSubTrigger(RadixThemesComponent):
337
401
 
338
402
  Args:
339
403
  *children: Child components.
404
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
340
405
  disabled: Whether the trigger is disabled
406
+ text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the .textContent of the item. Use this when the content is complex, or you have non-textual content inside.
341
407
  style: The style of the component.
342
408
  key: A unique key for the component.
343
409
  id: The id for the component.
@@ -357,32 +423,49 @@ class ContextMenuSubContent(RadixThemesComponent):
357
423
  def create( # type: ignore
358
424
  cls,
359
425
  *children,
426
+ as_child: Optional[Union[Var[bool], bool]] = None,
360
427
  loop: Optional[Union[Var[bool], bool]] = None,
428
+ force_mount: Optional[Union[Var[bool], bool]] = None,
429
+ side_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
430
+ align_offset: Optional[Union[Var[Union[float, int]], float, int]] = None,
431
+ avoid_collisions: Optional[Union[Var[bool], bool]] = None,
432
+ collision_padding: Optional[
433
+ Union[
434
+ Dict[str, Union[float, int]],
435
+ Var[Union[Dict[str, Union[float, int]], float, int]],
436
+ float,
437
+ int,
438
+ ]
439
+ ] = None,
440
+ sticky: Optional[
441
+ Union[Literal["always", "partial"], Var[Literal["always", "partial"]]]
442
+ ] = None,
443
+ hide_when_detached: Optional[Union[Var[bool], bool]] = None,
361
444
  style: Optional[Style] = None,
362
445
  key: Optional[Any] = None,
363
446
  id: Optional[Any] = None,
364
447
  class_name: Optional[Any] = None,
365
448
  autofocus: Optional[bool] = None,
366
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
367
- on_blur: Optional[EventType[[]]] = None,
368
- on_click: Optional[EventType[[]]] = None,
369
- on_context_menu: Optional[EventType[[]]] = None,
370
- on_double_click: Optional[EventType[[]]] = None,
371
- on_escape_key_down: Optional[EventType[[]]] = None,
372
- on_focus: Optional[EventType[[]]] = None,
373
- on_focus_outside: Optional[EventType[[]]] = None,
374
- on_interact_outside: Optional[EventType[[]]] = None,
375
- on_mount: Optional[EventType[[]]] = None,
376
- on_mouse_down: Optional[EventType[[]]] = None,
377
- on_mouse_enter: Optional[EventType[[]]] = None,
378
- on_mouse_leave: Optional[EventType[[]]] = None,
379
- on_mouse_move: Optional[EventType[[]]] = None,
380
- on_mouse_out: Optional[EventType[[]]] = None,
381
- on_mouse_over: Optional[EventType[[]]] = None,
382
- on_mouse_up: Optional[EventType[[]]] = None,
383
- on_pointer_down_outside: Optional[EventType[[]]] = None,
384
- on_scroll: Optional[EventType[[]]] = None,
385
- on_unmount: Optional[EventType[[]]] = None,
449
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
450
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
451
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
452
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
453
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
454
+ on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None,
455
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
456
+ on_focus_outside: Optional[EventType[[], BASE_STATE]] = None,
457
+ on_interact_outside: Optional[EventType[[], BASE_STATE]] = None,
458
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
459
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
460
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
461
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
462
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
463
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
464
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
465
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
466
+ on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None,
467
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
468
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
386
469
  **props,
387
470
  ) -> "ContextMenuSubContent":
388
471
  """Create a new component instance.
@@ -392,7 +475,19 @@ class ContextMenuSubContent(RadixThemesComponent):
392
475
 
393
476
  Args:
394
477
  *children: Child components.
395
- loop: When true, keyboard navigation will loop from last item to first, and vice versa.
478
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
479
+ loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
480
+ force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
481
+ side_offset: The distance in pixels from the trigger. Defaults to 0.
482
+ align_offset: An offset in pixels from the "start" or "end" alignment options.
483
+ avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
484
+ collision_padding: The distance in pixels from the boundary edges where collision detection should occur. Accepts a number (same for all sides), or a partial padding object, for example: { "top": 20, "left": 20 }. Defaults to 0.
485
+ sticky: The sticky behavior on the align axis. "partial" will keep the content in the boundary as long as the trigger is at least partially in the boundary whilst "always" will keep the content in the boundary regardless. Defaults to "partial".
486
+ hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
487
+ on_escape_key_down: Fired when the escape key is pressed.
488
+ on_pointer_down_outside: Fired when a pointer down event happens outside the context menu.
489
+ on_focus_outside: Fired when focus moves outside the context menu.
490
+ on_interact_outside: Fired when interacting outside the context menu.
396
491
  style: The style of the component.
397
492
  key: A unique key for the component.
398
493
  id: The id for the component.
@@ -475,27 +570,31 @@ class ContextMenuItem(RadixThemesComponent):
475
570
  ]
476
571
  ] = None,
477
572
  shortcut: Optional[Union[Var[str], str]] = None,
573
+ as_child: Optional[Union[Var[bool], bool]] = None,
574
+ disabled: Optional[Union[Var[bool], bool]] = None,
575
+ text_value: Optional[Union[Var[str], str]] = None,
478
576
  style: Optional[Style] = None,
479
577
  key: Optional[Any] = None,
480
578
  id: Optional[Any] = None,
481
579
  class_name: Optional[Any] = None,
482
580
  autofocus: Optional[bool] = None,
483
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
484
- on_blur: Optional[EventType[[]]] = None,
485
- on_click: Optional[EventType[[]]] = None,
486
- on_context_menu: Optional[EventType[[]]] = None,
487
- on_double_click: Optional[EventType[[]]] = None,
488
- on_focus: Optional[EventType[[]]] = None,
489
- on_mount: Optional[EventType[[]]] = None,
490
- on_mouse_down: Optional[EventType[[]]] = None,
491
- on_mouse_enter: Optional[EventType[[]]] = None,
492
- on_mouse_leave: Optional[EventType[[]]] = None,
493
- on_mouse_move: Optional[EventType[[]]] = None,
494
- on_mouse_out: Optional[EventType[[]]] = None,
495
- on_mouse_over: Optional[EventType[[]]] = None,
496
- on_mouse_up: Optional[EventType[[]]] = None,
497
- on_scroll: Optional[EventType[[]]] = None,
498
- on_unmount: Optional[EventType[[]]] = None,
581
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
582
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
583
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
584
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
585
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
586
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
587
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
588
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
589
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
590
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
591
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
592
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
593
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
594
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
595
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
596
+ on_select: Optional[EventType[[], BASE_STATE]] = None,
597
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
499
598
  **props,
500
599
  ) -> "ContextMenuItem":
501
600
  """Create a new component instance.
@@ -507,6 +606,10 @@ class ContextMenuItem(RadixThemesComponent):
507
606
  *children: Child components.
508
607
  color_scheme: Override theme color for button
509
608
  shortcut: Shortcut to render a menu item as a link
609
+ as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
610
+ disabled: When true, prevents the user from interacting with the item.
611
+ text_value: Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
612
+ on_select: Fired when the item is selected.
510
613
  style: The style of the component.
511
614
  key: A unique key for the component.
512
615
  id: The id for the component.
@@ -531,22 +634,22 @@ class ContextMenuSeparator(RadixThemesComponent):
531
634
  id: Optional[Any] = None,
532
635
  class_name: Optional[Any] = None,
533
636
  autofocus: Optional[bool] = None,
534
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
535
- on_blur: Optional[EventType[[]]] = None,
536
- on_click: Optional[EventType[[]]] = None,
537
- on_context_menu: Optional[EventType[[]]] = None,
538
- on_double_click: Optional[EventType[[]]] = None,
539
- on_focus: Optional[EventType[[]]] = None,
540
- on_mount: Optional[EventType[[]]] = None,
541
- on_mouse_down: Optional[EventType[[]]] = None,
542
- on_mouse_enter: Optional[EventType[[]]] = None,
543
- on_mouse_leave: Optional[EventType[[]]] = None,
544
- on_mouse_move: Optional[EventType[[]]] = None,
545
- on_mouse_out: Optional[EventType[[]]] = None,
546
- on_mouse_over: Optional[EventType[[]]] = None,
547
- on_mouse_up: Optional[EventType[[]]] = None,
548
- on_scroll: Optional[EventType[[]]] = None,
549
- on_unmount: Optional[EventType[[]]] = None,
637
+ custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
638
+ on_blur: Optional[EventType[[], BASE_STATE]] = None,
639
+ on_click: Optional[EventType[[], BASE_STATE]] = None,
640
+ on_context_menu: Optional[EventType[[], BASE_STATE]] = None,
641
+ on_double_click: Optional[EventType[[], BASE_STATE]] = None,
642
+ on_focus: Optional[EventType[[], BASE_STATE]] = None,
643
+ on_mount: Optional[EventType[[], BASE_STATE]] = None,
644
+ on_mouse_down: Optional[EventType[[], BASE_STATE]] = None,
645
+ on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None,
646
+ on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None,
647
+ on_mouse_move: Optional[EventType[[], BASE_STATE]] = None,
648
+ on_mouse_out: Optional[EventType[[], BASE_STATE]] = None,
649
+ on_mouse_over: Optional[EventType[[], BASE_STATE]] = None,
650
+ on_mouse_up: Optional[EventType[[], BASE_STATE]] = None,
651
+ on_scroll: Optional[EventType[[], BASE_STATE]] = None,
652
+ on_unmount: Optional[EventType[[], BASE_STATE]] = None,
550
653
  **props,
551
654
  ) -> "ContextMenuSeparator":
552
655
  """Create a new component instance.