You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
30
+
"""The Dropdown Menu Root Component."""
15
31
16
32
tag="DropdownMenu.Root"
17
33
34
+
# The open state of the dropdown menu when it is initially rendered. Use when you do not need to control its open state.
35
+
default_open: Var[bool]
36
+
18
37
# The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange.
19
38
open: Var[bool]
20
39
21
-
# 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.
40
+
# 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. Defaults to True.
22
41
modal: Var[bool]
23
42
43
+
# The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
44
+
dir: Var[LiteralDirType]
45
+
24
46
defget_event_triggers(self) ->Dict[str, Any]:
25
47
"""Get the events triggers signatures for the component.
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
59
+
"""The button that toggles the dropdown menu."""
38
60
39
61
tag="DropdownMenu.Trigger"
40
62
63
+
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
64
+
as_child: Var[bool]
65
+
41
66
42
67
classDropdownMenuContent(RadixThemesComponent):
43
-
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
68
+
"""The Dropdown Menu Content component that pops out when the dropdown menu is open."""
44
69
45
70
tag="DropdownMenu.Content"
46
71
72
+
# Dropdown Menu Content size "1" - "2"
73
+
size: Var[LiteralSizeType]
74
+
75
+
# Variant of Dropdown Menu Content: "solid" | "soft"
76
+
variant: Var[LiteralVariantType]
77
+
78
+
# Override theme color for Dropdown Menu Content
79
+
color_scheme: Var[LiteralAccentColor]
80
+
81
+
# Renders the Dropdown Menu Content in higher contrast
82
+
high_contrast: Var[bool]
83
+
84
+
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
85
+
as_child: Var[bool]
86
+
87
+
# When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
88
+
loop: Var[bool]
89
+
90
+
# Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
91
+
force_mount: Var[bool]
92
+
93
+
# 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".
94
+
side: Var[LiteralSideType]
95
+
96
+
# The distance in pixels from the trigger. Defaults to 0.
97
+
side_offset: Var[Union[float, int]]
98
+
99
+
# The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
100
+
align: Var[LiteralAlignType]
101
+
102
+
# An offset in pixels from the "start" or "end" alignment options.
103
+
align_offset: Var[Union[float, int]]
104
+
105
+
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
106
+
avoid_collisions: Var[bool]
107
+
108
+
# 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.
# The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. Defaults to 0.
112
+
arrow_padding: Var[Union[float, int]]
113
+
114
+
# 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".
115
+
sticky: Var[LiteralStickyType]
116
+
117
+
# Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
118
+
hide_when_detached: Var[bool]
119
+
47
120
defget_event_triggers(self) ->Dict[str, Any]:
48
121
"""Get the events triggers signatures for the component.
@@ -64,44 +138,134 @@ class DropdownMenuSubTrigger(RadixThemesComponent):
64
138
65
139
tag="DropdownMenu.SubTrigger"
66
140
141
+
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
142
+
as_child: Var[bool]
143
+
144
+
# When true, prevents the user from interacting with the item.
145
+
disabled: Var[bool]
146
+
147
+
# 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.
148
+
text_value: Var[str]
149
+
67
150
68
151
classDropdownMenuSub(RadixThemesComponent):
69
-
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
152
+
"""Contains all the parts of a submenu."""
70
153
71
154
tag="DropdownMenu.Sub"
72
155
156
+
# The controlled open state of the submenu. Must be used in conjunction with `on_open_change`.
157
+
open: Var[bool]
158
+
159
+
# The open state of the submenu when it is initially rendered. Use when you do not need to control its open state.
160
+
default_open: Var[bool]
161
+
162
+
defget_event_triggers(self) ->Dict[str, Any]:
163
+
"""Get the events triggers signatures for the component.
# Variant of Dropdown Menu Sub Content: "solid" | "soft"
183
+
variant: Var[LiteralVariantType]
84
184
85
-
# Override theme color for button
185
+
# Override theme color for Dropdown Menu Sub Content
86
186
color_scheme: Var[LiteralAccentColor]
87
187
88
-
# Whether to render the button with higher contrast color against background
188
+
# Whether to render the component with higher contrast color against background
89
189
high_contrast: Var[bool]
90
190
191
+
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
192
+
as_child: Var[bool]
193
+
194
+
# When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
195
+
loop: Var[bool]
196
+
197
+
# Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
198
+
force_mount: Var[bool]
199
+
200
+
# The distance in pixels from the trigger. Defaults to 0.
201
+
side_offset: Var[Union[float, int]]
202
+
203
+
# An offset in pixels from the "start" or "end" alignment options.
204
+
align_offset: Var[Union[float, int]]
205
+
206
+
# When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
207
+
avoid_collisions: Var[bool]
208
+
209
+
# 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.
# The padding between the arrow and the edges of the content. If your content has border-radius, this will prevent it from overflowing the corners. Defaults to 0.
213
+
arrow_padding: Var[Union[float, int]]
214
+
215
+
# 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".
216
+
sticky: Var[LiteralStickyType]
217
+
218
+
# Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
219
+
hide_when_detached: Var[bool]
220
+
221
+
defget_event_triggers(self) ->Dict[str, Any]:
222
+
"""Get the events triggers signatures for the component.
"""Trigger an action or event, such as submitting a form or displaying a dialog."""
237
+
"""The Dropdown Menu Item Component."""
94
238
95
239
tag="DropdownMenu.Item"
96
240
97
-
# Override theme color for button
241
+
# Override theme color for Dropdown Menu Item
98
242
color_scheme: Var[LiteralAccentColor]
99
243
100
244
# Shortcut to render a menu item as a link
101
245
shortcut: Var[str]
102
246
247
+
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
248
+
as_child: Var[bool]
249
+
250
+
# When true, prevents the user from interacting with the item.
251
+
disabled: Var[bool]
252
+
253
+
# 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.
254
+
text_value: Var[str]
255
+
256
+
defget_event_triggers(self) ->Dict[str, Any]:
257
+
"""Get the events triggers signatures for the component.
0 commit comments