reflex 0.4.8a1__py3-none-any.whl → 0.4.9__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 (31) hide show
  1. reflex/app.py +3 -0
  2. reflex/components/component.py +10 -3
  3. reflex/components/core/debounce.py +4 -1
  4. reflex/constants/installer.py +1 -0
  5. reflex/experimental/__init__.py +2 -0
  6. reflex/experimental/hooks.py +19 -1
  7. reflex/experimental/layout.py +223 -0
  8. reflex/testing.py +23 -6
  9. reflex/utils/prerequisites.py +11 -7
  10. reflex/utils/processes.py +51 -30
  11. reflex/utils/pyi_generator.py +6 -1
  12. reflex/utils/serializers.py +14 -0
  13. reflex/vars.py +1 -1
  14. {reflex-0.4.8a1.dist-info → reflex-0.4.9.dist-info}/METADATA +1 -1
  15. {reflex-0.4.8a1.dist-info → reflex-0.4.9.dist-info}/RECORD +18 -30
  16. reflex/components/radix/themes/components/alertdialog.pyi +0 -1128
  17. reflex/components/radix/themes/components/aspectratio.pyi +0 -162
  18. reflex/components/radix/themes/components/contextmenu.pyi +0 -1249
  19. reflex/components/radix/themes/components/dropdownmenu.pyi +0 -1350
  20. reflex/components/radix/themes/components/hovercard.pyi +0 -700
  21. reflex/components/radix/themes/components/iconbutton.pyi +0 -284
  22. reflex/components/radix/themes/components/radiogroup.pyi +0 -701
  23. reflex/components/radix/themes/components/scrollarea.pyi +0 -176
  24. reflex/components/radix/themes/components/textfield.pyi +0 -1092
  25. reflex/components/radix/themes/typography/em.pyi +0 -213
  26. reflex/components/radix/themes/typography/kbd.pyi +0 -222
  27. reflex/components/radix/themes/typography/quote.pyi +0 -215
  28. reflex/components/radix/themes/typography/strong.pyi +0 -213
  29. {reflex-0.4.8a1.dist-info → reflex-0.4.9.dist-info}/LICENSE +0 -0
  30. {reflex-0.4.8a1.dist-info → reflex-0.4.9.dist-info}/WHEEL +0 -0
  31. {reflex-0.4.8a1.dist-info → reflex-0.4.9.dist-info}/entry_points.txt +0 -0
@@ -1,1350 +0,0 @@
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 types import SimpleNamespace
11
- from typing import Any, Dict, List, Literal, Union
12
- from reflex.constants import EventTriggers
13
- from reflex.vars import Var
14
- from ..base import LiteralAccentColor, RadixThemesComponent
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
-
23
- class DropdownMenuRoot(RadixThemesComponent):
24
- def get_event_triggers(self) -> Dict[str, Any]: ...
25
- @overload
26
- @classmethod
27
- def create( # type: ignore
28
- cls,
29
- *children,
30
- color: Optional[Union[Var[str], str]] = None,
31
- color_scheme: Optional[
32
- Union[
33
- Var[
34
- Literal[
35
- "tomato",
36
- "red",
37
- "ruby",
38
- "crimson",
39
- "pink",
40
- "plum",
41
- "purple",
42
- "violet",
43
- "iris",
44
- "indigo",
45
- "blue",
46
- "cyan",
47
- "teal",
48
- "jade",
49
- "green",
50
- "grass",
51
- "brown",
52
- "orange",
53
- "sky",
54
- "mint",
55
- "lime",
56
- "yellow",
57
- "amber",
58
- "gold",
59
- "bronze",
60
- "gray",
61
- ]
62
- ],
63
- Literal[
64
- "tomato",
65
- "red",
66
- "ruby",
67
- "crimson",
68
- "pink",
69
- "plum",
70
- "purple",
71
- "violet",
72
- "iris",
73
- "indigo",
74
- "blue",
75
- "cyan",
76
- "teal",
77
- "jade",
78
- "green",
79
- "grass",
80
- "brown",
81
- "orange",
82
- "sky",
83
- "mint",
84
- "lime",
85
- "yellow",
86
- "amber",
87
- "gold",
88
- "bronze",
89
- "gray",
90
- ],
91
- ]
92
- ] = None,
93
- default_open: Optional[Union[Var[bool], bool]] = None,
94
- open: Optional[Union[Var[bool], bool]] = None,
95
- modal: Optional[Union[Var[bool], bool]] = None,
96
- dir: Optional[Union[Var[Literal["ltr", "rtl"]], Literal["ltr", "rtl"]]] = None,
97
- style: Optional[Style] = None,
98
- key: Optional[Any] = None,
99
- id: Optional[Any] = None,
100
- class_name: Optional[Any] = None,
101
- autofocus: Optional[bool] = None,
102
- _rename_props: Optional[Dict[str, str]] = None,
103
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
104
- on_blur: Optional[
105
- Union[EventHandler, EventSpec, list, function, BaseVar]
106
- ] = None,
107
- on_click: Optional[
108
- Union[EventHandler, EventSpec, list, function, BaseVar]
109
- ] = None,
110
- on_context_menu: Optional[
111
- Union[EventHandler, EventSpec, list, function, BaseVar]
112
- ] = None,
113
- on_double_click: Optional[
114
- Union[EventHandler, EventSpec, list, function, BaseVar]
115
- ] = None,
116
- on_focus: Optional[
117
- Union[EventHandler, EventSpec, list, function, BaseVar]
118
- ] = None,
119
- on_mount: Optional[
120
- Union[EventHandler, EventSpec, list, function, BaseVar]
121
- ] = None,
122
- on_mouse_down: Optional[
123
- Union[EventHandler, EventSpec, list, function, BaseVar]
124
- ] = None,
125
- on_mouse_enter: Optional[
126
- Union[EventHandler, EventSpec, list, function, BaseVar]
127
- ] = None,
128
- on_mouse_leave: Optional[
129
- Union[EventHandler, EventSpec, list, function, BaseVar]
130
- ] = None,
131
- on_mouse_move: Optional[
132
- Union[EventHandler, EventSpec, list, function, BaseVar]
133
- ] = None,
134
- on_mouse_out: Optional[
135
- Union[EventHandler, EventSpec, list, function, BaseVar]
136
- ] = None,
137
- on_mouse_over: Optional[
138
- Union[EventHandler, EventSpec, list, function, BaseVar]
139
- ] = None,
140
- on_mouse_up: Optional[
141
- Union[EventHandler, EventSpec, list, function, BaseVar]
142
- ] = None,
143
- on_open_change: Optional[
144
- Union[EventHandler, EventSpec, list, function, BaseVar]
145
- ] = None,
146
- on_scroll: Optional[
147
- Union[EventHandler, EventSpec, list, function, BaseVar]
148
- ] = None,
149
- on_unmount: Optional[
150
- Union[EventHandler, EventSpec, list, function, BaseVar]
151
- ] = None,
152
- **props
153
- ) -> "DropdownMenuRoot":
154
- """Create a new component instance.
155
-
156
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
157
- other UI libraries for common names, like Text and Button.
158
-
159
- Args:
160
- *children: Child components.
161
- color: map to CSS default color property.
162
- color_scheme: map to radix color property.
163
- default_open: The open state of the dropdown menu when it is initially rendered. Use when you do not need to control its open state.
164
- open: The controlled open state of the dropdown menu. Must be used in conjunction with onOpenChange.
165
- 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. Defaults to True.
166
- dir: The reading direction of submenus when applicable. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode.
167
- style: The style of the component.
168
- key: A unique key for the component.
169
- id: The id for the component.
170
- class_name: The class name for the component.
171
- autofocus: Whether the component should take the focus once the page is loaded
172
- _rename_props: props to change the name of
173
- custom_attrs: custom attribute
174
- **props: Component properties.
175
-
176
- Returns:
177
- A new component instance.
178
- """
179
- ...
180
-
181
- class DropdownMenuTrigger(RadixThemesComponent):
182
- @overload
183
- @classmethod
184
- def create( # type: ignore
185
- cls,
186
- *children,
187
- color: Optional[Union[Var[str], str]] = None,
188
- color_scheme: Optional[
189
- Union[
190
- Var[
191
- Literal[
192
- "tomato",
193
- "red",
194
- "ruby",
195
- "crimson",
196
- "pink",
197
- "plum",
198
- "purple",
199
- "violet",
200
- "iris",
201
- "indigo",
202
- "blue",
203
- "cyan",
204
- "teal",
205
- "jade",
206
- "green",
207
- "grass",
208
- "brown",
209
- "orange",
210
- "sky",
211
- "mint",
212
- "lime",
213
- "yellow",
214
- "amber",
215
- "gold",
216
- "bronze",
217
- "gray",
218
- ]
219
- ],
220
- Literal[
221
- "tomato",
222
- "red",
223
- "ruby",
224
- "crimson",
225
- "pink",
226
- "plum",
227
- "purple",
228
- "violet",
229
- "iris",
230
- "indigo",
231
- "blue",
232
- "cyan",
233
- "teal",
234
- "jade",
235
- "green",
236
- "grass",
237
- "brown",
238
- "orange",
239
- "sky",
240
- "mint",
241
- "lime",
242
- "yellow",
243
- "amber",
244
- "gold",
245
- "bronze",
246
- "gray",
247
- ],
248
- ]
249
- ] = None,
250
- as_child: Optional[Union[Var[bool], bool]] = None,
251
- style: Optional[Style] = None,
252
- key: Optional[Any] = None,
253
- id: Optional[Any] = None,
254
- class_name: Optional[Any] = None,
255
- autofocus: Optional[bool] = None,
256
- _rename_props: Optional[Dict[str, str]] = None,
257
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
258
- on_blur: Optional[
259
- Union[EventHandler, EventSpec, list, function, BaseVar]
260
- ] = None,
261
- on_click: Optional[
262
- Union[EventHandler, EventSpec, list, function, BaseVar]
263
- ] = None,
264
- on_context_menu: Optional[
265
- Union[EventHandler, EventSpec, list, function, BaseVar]
266
- ] = None,
267
- on_double_click: Optional[
268
- Union[EventHandler, EventSpec, list, function, BaseVar]
269
- ] = None,
270
- on_focus: Optional[
271
- Union[EventHandler, EventSpec, list, function, BaseVar]
272
- ] = None,
273
- on_mount: Optional[
274
- Union[EventHandler, EventSpec, list, function, BaseVar]
275
- ] = None,
276
- on_mouse_down: Optional[
277
- Union[EventHandler, EventSpec, list, function, BaseVar]
278
- ] = None,
279
- on_mouse_enter: Optional[
280
- Union[EventHandler, EventSpec, list, function, BaseVar]
281
- ] = None,
282
- on_mouse_leave: Optional[
283
- Union[EventHandler, EventSpec, list, function, BaseVar]
284
- ] = None,
285
- on_mouse_move: Optional[
286
- Union[EventHandler, EventSpec, list, function, BaseVar]
287
- ] = None,
288
- on_mouse_out: Optional[
289
- Union[EventHandler, EventSpec, list, function, BaseVar]
290
- ] = None,
291
- on_mouse_over: Optional[
292
- Union[EventHandler, EventSpec, list, function, BaseVar]
293
- ] = None,
294
- on_mouse_up: Optional[
295
- Union[EventHandler, EventSpec, list, function, BaseVar]
296
- ] = None,
297
- on_scroll: Optional[
298
- Union[EventHandler, EventSpec, list, function, BaseVar]
299
- ] = None,
300
- on_unmount: Optional[
301
- Union[EventHandler, EventSpec, list, function, BaseVar]
302
- ] = None,
303
- **props
304
- ) -> "DropdownMenuTrigger":
305
- """Create a new component instance.
306
-
307
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
308
- other UI libraries for common names, like Text and Button.
309
-
310
- Args:
311
- *children: Child components.
312
- color: map to CSS default color property.
313
- color_scheme: map to radix color property.
314
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
315
- style: The style of the component.
316
- key: A unique key for the component.
317
- id: The id for the component.
318
- class_name: The class name for the component.
319
- autofocus: Whether the component should take the focus once the page is loaded
320
- _rename_props: props to change the name of
321
- custom_attrs: custom attribute
322
- **props: Component properties.
323
-
324
- Returns:
325
- A new component instance.
326
- """
327
- ...
328
-
329
- class DropdownMenuContent(RadixThemesComponent):
330
- def get_event_triggers(self) -> Dict[str, Any]: ...
331
- @overload
332
- @classmethod
333
- def create( # type: ignore
334
- cls,
335
- *children,
336
- color: Optional[Union[Var[str], str]] = None,
337
- color_scheme: Optional[
338
- Union[
339
- Var[
340
- Literal[
341
- "tomato",
342
- "red",
343
- "ruby",
344
- "crimson",
345
- "pink",
346
- "plum",
347
- "purple",
348
- "violet",
349
- "iris",
350
- "indigo",
351
- "blue",
352
- "cyan",
353
- "teal",
354
- "jade",
355
- "green",
356
- "grass",
357
- "brown",
358
- "orange",
359
- "sky",
360
- "mint",
361
- "lime",
362
- "yellow",
363
- "amber",
364
- "gold",
365
- "bronze",
366
- "gray",
367
- ]
368
- ],
369
- Literal[
370
- "tomato",
371
- "red",
372
- "ruby",
373
- "crimson",
374
- "pink",
375
- "plum",
376
- "purple",
377
- "violet",
378
- "iris",
379
- "indigo",
380
- "blue",
381
- "cyan",
382
- "teal",
383
- "jade",
384
- "green",
385
- "grass",
386
- "brown",
387
- "orange",
388
- "sky",
389
- "mint",
390
- "lime",
391
- "yellow",
392
- "amber",
393
- "gold",
394
- "bronze",
395
- "gray",
396
- ],
397
- ]
398
- ] = None,
399
- size: Optional[Union[Var[Literal["1", "2"]], Literal["1", "2"]]] = None,
400
- variant: Optional[
401
- Union[Var[Literal["solid", "soft"]], Literal["solid", "soft"]]
402
- ] = None,
403
- high_contrast: Optional[Union[Var[bool], bool]] = None,
404
- as_child: Optional[Union[Var[bool], bool]] = None,
405
- loop: Optional[Union[Var[bool], bool]] = None,
406
- force_mount: Optional[Union[Var[bool], bool]] = None,
407
- side: Optional[
408
- Union[
409
- Var[Literal["top", "right", "bottom", "left"]],
410
- Literal["top", "right", "bottom", "left"],
411
- ]
412
- ] = None,
413
- side_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
414
- align: Optional[
415
- Union[
416
- Var[Literal["start", "center", "end"]],
417
- Literal["start", "center", "end"],
418
- ]
419
- ] = None,
420
- align_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
421
- avoid_collisions: Optional[Union[Var[bool], bool]] = None,
422
- collision_padding: Optional[
423
- Union[
424
- Var[Union[float, int, Dict[str, Union[float, int]]]],
425
- Union[float, int, Dict[str, Union[float, int]]],
426
- ]
427
- ] = None,
428
- arrow_padding: Optional[
429
- Union[Var[Union[float, int]], Union[float, int]]
430
- ] = None,
431
- sticky: Optional[
432
- Union[Var[Literal["partial", "always"]], Literal["partial", "always"]]
433
- ] = None,
434
- hide_when_detached: Optional[Union[Var[bool], bool]] = None,
435
- style: Optional[Style] = None,
436
- key: Optional[Any] = None,
437
- id: Optional[Any] = None,
438
- class_name: Optional[Any] = None,
439
- autofocus: Optional[bool] = None,
440
- _rename_props: Optional[Dict[str, str]] = None,
441
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
442
- on_blur: Optional[
443
- Union[EventHandler, EventSpec, list, function, BaseVar]
444
- ] = None,
445
- on_click: Optional[
446
- Union[EventHandler, EventSpec, list, function, BaseVar]
447
- ] = None,
448
- on_close_auto_focus: Optional[
449
- Union[EventHandler, EventSpec, list, function, BaseVar]
450
- ] = None,
451
- on_context_menu: Optional[
452
- Union[EventHandler, EventSpec, list, function, BaseVar]
453
- ] = None,
454
- on_double_click: Optional[
455
- Union[EventHandler, EventSpec, list, function, BaseVar]
456
- ] = None,
457
- on_escape_key_down: Optional[
458
- Union[EventHandler, EventSpec, list, function, BaseVar]
459
- ] = None,
460
- on_focus: Optional[
461
- Union[EventHandler, EventSpec, list, function, BaseVar]
462
- ] = None,
463
- on_focus_outside: Optional[
464
- Union[EventHandler, EventSpec, list, function, BaseVar]
465
- ] = None,
466
- on_interact_outside: Optional[
467
- Union[EventHandler, EventSpec, list, function, BaseVar]
468
- ] = None,
469
- on_mount: Optional[
470
- Union[EventHandler, EventSpec, list, function, BaseVar]
471
- ] = None,
472
- on_mouse_down: Optional[
473
- Union[EventHandler, EventSpec, list, function, BaseVar]
474
- ] = None,
475
- on_mouse_enter: Optional[
476
- Union[EventHandler, EventSpec, list, function, BaseVar]
477
- ] = None,
478
- on_mouse_leave: Optional[
479
- Union[EventHandler, EventSpec, list, function, BaseVar]
480
- ] = None,
481
- on_mouse_move: Optional[
482
- Union[EventHandler, EventSpec, list, function, BaseVar]
483
- ] = None,
484
- on_mouse_out: Optional[
485
- Union[EventHandler, EventSpec, list, function, BaseVar]
486
- ] = None,
487
- on_mouse_over: Optional[
488
- Union[EventHandler, EventSpec, list, function, BaseVar]
489
- ] = None,
490
- on_mouse_up: Optional[
491
- Union[EventHandler, EventSpec, list, function, BaseVar]
492
- ] = None,
493
- on_pointer_down_outside: Optional[
494
- Union[EventHandler, EventSpec, list, function, BaseVar]
495
- ] = None,
496
- on_scroll: Optional[
497
- Union[EventHandler, EventSpec, list, function, BaseVar]
498
- ] = None,
499
- on_unmount: Optional[
500
- Union[EventHandler, EventSpec, list, function, BaseVar]
501
- ] = None,
502
- **props
503
- ) -> "DropdownMenuContent":
504
- """Create a new component instance.
505
-
506
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
507
- other UI libraries for common names, like Text and Button.
508
-
509
- Args:
510
- *children: Child components.
511
- color: map to CSS default color property.
512
- color_scheme: map to radix color property.
513
- size: Dropdown Menu Content size "1" - "2"
514
- variant: Variant of Dropdown Menu Content: "solid" | "soft"
515
- high_contrast: Renders the Dropdown Menu Content in higher contrast
516
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
517
- loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
518
- force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
519
- 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".
520
- side_offset: The distance in pixels from the trigger. Defaults to 0.
521
- align: The preferred alignment against the trigger. May change when collisions occur. Defaults to "center".
522
- align_offset: An offset in pixels from the "start" or "end" alignment options.
523
- avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
524
- 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.
525
- arrow_padding: 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.
526
- 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".
527
- hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
528
- style: The style of the component.
529
- key: A unique key for the component.
530
- id: The id for the component.
531
- class_name: The class name for the component.
532
- autofocus: Whether the component should take the focus once the page is loaded
533
- _rename_props: props to change the name of
534
- custom_attrs: custom attribute
535
- **props: Component properties.
536
-
537
- Returns:
538
- A new component instance.
539
- """
540
- ...
541
-
542
- class DropdownMenuSubTrigger(RadixThemesComponent):
543
- @overload
544
- @classmethod
545
- def create( # type: ignore
546
- cls,
547
- *children,
548
- color: Optional[Union[Var[str], str]] = None,
549
- color_scheme: Optional[
550
- Union[
551
- Var[
552
- Literal[
553
- "tomato",
554
- "red",
555
- "ruby",
556
- "crimson",
557
- "pink",
558
- "plum",
559
- "purple",
560
- "violet",
561
- "iris",
562
- "indigo",
563
- "blue",
564
- "cyan",
565
- "teal",
566
- "jade",
567
- "green",
568
- "grass",
569
- "brown",
570
- "orange",
571
- "sky",
572
- "mint",
573
- "lime",
574
- "yellow",
575
- "amber",
576
- "gold",
577
- "bronze",
578
- "gray",
579
- ]
580
- ],
581
- Literal[
582
- "tomato",
583
- "red",
584
- "ruby",
585
- "crimson",
586
- "pink",
587
- "plum",
588
- "purple",
589
- "violet",
590
- "iris",
591
- "indigo",
592
- "blue",
593
- "cyan",
594
- "teal",
595
- "jade",
596
- "green",
597
- "grass",
598
- "brown",
599
- "orange",
600
- "sky",
601
- "mint",
602
- "lime",
603
- "yellow",
604
- "amber",
605
- "gold",
606
- "bronze",
607
- "gray",
608
- ],
609
- ]
610
- ] = None,
611
- as_child: Optional[Union[Var[bool], bool]] = None,
612
- disabled: Optional[Union[Var[bool], bool]] = None,
613
- text_value: Optional[Union[Var[str], str]] = None,
614
- style: Optional[Style] = None,
615
- key: Optional[Any] = None,
616
- id: Optional[Any] = None,
617
- class_name: Optional[Any] = None,
618
- autofocus: Optional[bool] = None,
619
- _rename_props: Optional[Dict[str, str]] = None,
620
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
621
- on_blur: Optional[
622
- Union[EventHandler, EventSpec, list, function, BaseVar]
623
- ] = None,
624
- on_click: Optional[
625
- Union[EventHandler, EventSpec, list, function, BaseVar]
626
- ] = None,
627
- on_context_menu: Optional[
628
- Union[EventHandler, EventSpec, list, function, BaseVar]
629
- ] = None,
630
- on_double_click: Optional[
631
- Union[EventHandler, EventSpec, list, function, BaseVar]
632
- ] = None,
633
- on_focus: Optional[
634
- Union[EventHandler, EventSpec, list, function, BaseVar]
635
- ] = None,
636
- on_mount: Optional[
637
- Union[EventHandler, EventSpec, list, function, BaseVar]
638
- ] = None,
639
- on_mouse_down: Optional[
640
- Union[EventHandler, EventSpec, list, function, BaseVar]
641
- ] = None,
642
- on_mouse_enter: Optional[
643
- Union[EventHandler, EventSpec, list, function, BaseVar]
644
- ] = None,
645
- on_mouse_leave: Optional[
646
- Union[EventHandler, EventSpec, list, function, BaseVar]
647
- ] = None,
648
- on_mouse_move: Optional[
649
- Union[EventHandler, EventSpec, list, function, BaseVar]
650
- ] = None,
651
- on_mouse_out: Optional[
652
- Union[EventHandler, EventSpec, list, function, BaseVar]
653
- ] = None,
654
- on_mouse_over: Optional[
655
- Union[EventHandler, EventSpec, list, function, BaseVar]
656
- ] = None,
657
- on_mouse_up: Optional[
658
- Union[EventHandler, EventSpec, list, function, BaseVar]
659
- ] = None,
660
- on_scroll: Optional[
661
- Union[EventHandler, EventSpec, list, function, BaseVar]
662
- ] = None,
663
- on_unmount: Optional[
664
- Union[EventHandler, EventSpec, list, function, BaseVar]
665
- ] = None,
666
- **props
667
- ) -> "DropdownMenuSubTrigger":
668
- """Create a new component instance.
669
-
670
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
671
- other UI libraries for common names, like Text and Button.
672
-
673
- Args:
674
- *children: Child components.
675
- color: map to CSS default color property.
676
- color_scheme: map to radix color property.
677
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
678
- disabled: When true, prevents the user from interacting with the item.
679
- 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.
680
- style: The style of the component.
681
- key: A unique key for the component.
682
- id: The id for the component.
683
- class_name: The class name for the component.
684
- autofocus: Whether the component should take the focus once the page is loaded
685
- _rename_props: props to change the name of
686
- custom_attrs: custom attribute
687
- **props: Component properties.
688
-
689
- Returns:
690
- A new component instance.
691
- """
692
- ...
693
-
694
- class DropdownMenuSub(RadixThemesComponent):
695
- def get_event_triggers(self) -> Dict[str, Any]: ...
696
- @overload
697
- @classmethod
698
- def create( # type: ignore
699
- cls,
700
- *children,
701
- color: Optional[Union[Var[str], str]] = None,
702
- color_scheme: Optional[
703
- Union[
704
- Var[
705
- Literal[
706
- "tomato",
707
- "red",
708
- "ruby",
709
- "crimson",
710
- "pink",
711
- "plum",
712
- "purple",
713
- "violet",
714
- "iris",
715
- "indigo",
716
- "blue",
717
- "cyan",
718
- "teal",
719
- "jade",
720
- "green",
721
- "grass",
722
- "brown",
723
- "orange",
724
- "sky",
725
- "mint",
726
- "lime",
727
- "yellow",
728
- "amber",
729
- "gold",
730
- "bronze",
731
- "gray",
732
- ]
733
- ],
734
- Literal[
735
- "tomato",
736
- "red",
737
- "ruby",
738
- "crimson",
739
- "pink",
740
- "plum",
741
- "purple",
742
- "violet",
743
- "iris",
744
- "indigo",
745
- "blue",
746
- "cyan",
747
- "teal",
748
- "jade",
749
- "green",
750
- "grass",
751
- "brown",
752
- "orange",
753
- "sky",
754
- "mint",
755
- "lime",
756
- "yellow",
757
- "amber",
758
- "gold",
759
- "bronze",
760
- "gray",
761
- ],
762
- ]
763
- ] = None,
764
- open: Optional[Union[Var[bool], bool]] = None,
765
- default_open: Optional[Union[Var[bool], bool]] = None,
766
- style: Optional[Style] = None,
767
- key: Optional[Any] = None,
768
- id: Optional[Any] = None,
769
- class_name: Optional[Any] = None,
770
- autofocus: Optional[bool] = None,
771
- _rename_props: Optional[Dict[str, str]] = None,
772
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
773
- on_blur: Optional[
774
- Union[EventHandler, EventSpec, list, function, BaseVar]
775
- ] = None,
776
- on_click: Optional[
777
- Union[EventHandler, EventSpec, list, function, BaseVar]
778
- ] = None,
779
- on_context_menu: Optional[
780
- Union[EventHandler, EventSpec, list, function, BaseVar]
781
- ] = None,
782
- on_double_click: Optional[
783
- Union[EventHandler, EventSpec, list, function, BaseVar]
784
- ] = None,
785
- on_focus: Optional[
786
- Union[EventHandler, EventSpec, list, function, BaseVar]
787
- ] = None,
788
- on_mount: Optional[
789
- Union[EventHandler, EventSpec, list, function, BaseVar]
790
- ] = None,
791
- on_mouse_down: Optional[
792
- Union[EventHandler, EventSpec, list, function, BaseVar]
793
- ] = None,
794
- on_mouse_enter: Optional[
795
- Union[EventHandler, EventSpec, list, function, BaseVar]
796
- ] = None,
797
- on_mouse_leave: Optional[
798
- Union[EventHandler, EventSpec, list, function, BaseVar]
799
- ] = None,
800
- on_mouse_move: Optional[
801
- Union[EventHandler, EventSpec, list, function, BaseVar]
802
- ] = None,
803
- on_mouse_out: Optional[
804
- Union[EventHandler, EventSpec, list, function, BaseVar]
805
- ] = None,
806
- on_mouse_over: Optional[
807
- Union[EventHandler, EventSpec, list, function, BaseVar]
808
- ] = None,
809
- on_mouse_up: Optional[
810
- Union[EventHandler, EventSpec, list, function, BaseVar]
811
- ] = None,
812
- on_open_change: Optional[
813
- Union[EventHandler, EventSpec, list, function, BaseVar]
814
- ] = None,
815
- on_scroll: Optional[
816
- Union[EventHandler, EventSpec, list, function, BaseVar]
817
- ] = None,
818
- on_unmount: Optional[
819
- Union[EventHandler, EventSpec, list, function, BaseVar]
820
- ] = None,
821
- **props
822
- ) -> "DropdownMenuSub":
823
- """Create a new component instance.
824
-
825
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
826
- other UI libraries for common names, like Text and Button.
827
-
828
- Args:
829
- *children: Child components.
830
- color: map to CSS default color property.
831
- color_scheme: map to radix color property.
832
- open: The controlled open state of the submenu. Must be used in conjunction with `on_open_change`.
833
- default_open: The open state of the submenu when it is initially rendered. Use when you do not need to control its open state.
834
- style: The style of the component.
835
- key: A unique key for the component.
836
- id: The id for the component.
837
- class_name: The class name for the component.
838
- autofocus: Whether the component should take the focus once the page is loaded
839
- _rename_props: props to change the name of
840
- custom_attrs: custom attribute
841
- **props: Component properties.
842
-
843
- Returns:
844
- A new component instance.
845
- """
846
- ...
847
-
848
- class DropdownMenuSubContent(RadixThemesComponent):
849
- def get_event_triggers(self) -> Dict[str, Any]: ...
850
- @overload
851
- @classmethod
852
- def create( # type: ignore
853
- cls,
854
- *children,
855
- color: Optional[Union[Var[str], str]] = None,
856
- color_scheme: Optional[
857
- Union[
858
- Var[
859
- Literal[
860
- "tomato",
861
- "red",
862
- "ruby",
863
- "crimson",
864
- "pink",
865
- "plum",
866
- "purple",
867
- "violet",
868
- "iris",
869
- "indigo",
870
- "blue",
871
- "cyan",
872
- "teal",
873
- "jade",
874
- "green",
875
- "grass",
876
- "brown",
877
- "orange",
878
- "sky",
879
- "mint",
880
- "lime",
881
- "yellow",
882
- "amber",
883
- "gold",
884
- "bronze",
885
- "gray",
886
- ]
887
- ],
888
- Literal[
889
- "tomato",
890
- "red",
891
- "ruby",
892
- "crimson",
893
- "pink",
894
- "plum",
895
- "purple",
896
- "violet",
897
- "iris",
898
- "indigo",
899
- "blue",
900
- "cyan",
901
- "teal",
902
- "jade",
903
- "green",
904
- "grass",
905
- "brown",
906
- "orange",
907
- "sky",
908
- "mint",
909
- "lime",
910
- "yellow",
911
- "amber",
912
- "gold",
913
- "bronze",
914
- "gray",
915
- ],
916
- ]
917
- ] = None,
918
- as_child: Optional[Union[Var[bool], bool]] = None,
919
- loop: Optional[Union[Var[bool], bool]] = None,
920
- force_mount: Optional[Union[Var[bool], bool]] = None,
921
- side_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
922
- align_offset: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
923
- avoid_collisions: Optional[Union[Var[bool], bool]] = None,
924
- collision_padding: Optional[
925
- Union[
926
- Var[Union[float, int, Dict[str, Union[float, int]]]],
927
- Union[float, int, Dict[str, Union[float, int]]],
928
- ]
929
- ] = None,
930
- arrow_padding: Optional[
931
- Union[Var[Union[float, int]], Union[float, int]]
932
- ] = None,
933
- sticky: Optional[
934
- Union[Var[Literal["partial", "always"]], Literal["partial", "always"]]
935
- ] = None,
936
- hide_when_detached: Optional[Union[Var[bool], bool]] = None,
937
- style: Optional[Style] = None,
938
- key: Optional[Any] = None,
939
- id: Optional[Any] = None,
940
- class_name: Optional[Any] = None,
941
- autofocus: Optional[bool] = None,
942
- _rename_props: Optional[Dict[str, str]] = None,
943
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
944
- on_blur: Optional[
945
- Union[EventHandler, EventSpec, list, function, BaseVar]
946
- ] = None,
947
- on_click: Optional[
948
- Union[EventHandler, EventSpec, list, function, BaseVar]
949
- ] = None,
950
- on_context_menu: Optional[
951
- Union[EventHandler, EventSpec, list, function, BaseVar]
952
- ] = None,
953
- on_double_click: Optional[
954
- Union[EventHandler, EventSpec, list, function, BaseVar]
955
- ] = None,
956
- on_escape_key_down: Optional[
957
- Union[EventHandler, EventSpec, list, function, BaseVar]
958
- ] = None,
959
- on_focus: Optional[
960
- Union[EventHandler, EventSpec, list, function, BaseVar]
961
- ] = None,
962
- on_focus_outside: Optional[
963
- Union[EventHandler, EventSpec, list, function, BaseVar]
964
- ] = None,
965
- on_interact_outside: Optional[
966
- Union[EventHandler, EventSpec, list, function, BaseVar]
967
- ] = None,
968
- on_mount: Optional[
969
- Union[EventHandler, EventSpec, list, function, BaseVar]
970
- ] = None,
971
- on_mouse_down: Optional[
972
- Union[EventHandler, EventSpec, list, function, BaseVar]
973
- ] = None,
974
- on_mouse_enter: Optional[
975
- Union[EventHandler, EventSpec, list, function, BaseVar]
976
- ] = None,
977
- on_mouse_leave: Optional[
978
- Union[EventHandler, EventSpec, list, function, BaseVar]
979
- ] = None,
980
- on_mouse_move: Optional[
981
- Union[EventHandler, EventSpec, list, function, BaseVar]
982
- ] = None,
983
- on_mouse_out: Optional[
984
- Union[EventHandler, EventSpec, list, function, BaseVar]
985
- ] = None,
986
- on_mouse_over: Optional[
987
- Union[EventHandler, EventSpec, list, function, BaseVar]
988
- ] = None,
989
- on_mouse_up: Optional[
990
- Union[EventHandler, EventSpec, list, function, BaseVar]
991
- ] = None,
992
- on_pointer_down_outside: Optional[
993
- Union[EventHandler, EventSpec, list, function, BaseVar]
994
- ] = None,
995
- on_scroll: Optional[
996
- Union[EventHandler, EventSpec, list, function, BaseVar]
997
- ] = None,
998
- on_unmount: Optional[
999
- Union[EventHandler, EventSpec, list, function, BaseVar]
1000
- ] = None,
1001
- **props
1002
- ) -> "DropdownMenuSubContent":
1003
- """Create a new component instance.
1004
-
1005
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
1006
- other UI libraries for common names, like Text and Button.
1007
-
1008
- Args:
1009
- *children: Child components.
1010
- color: map to CSS default color property.
1011
- color_scheme: map to radix color property.
1012
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
1013
- loop: When True, keyboard navigation will loop from last item to first, and vice versa. Defaults to False.
1014
- force_mount: Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries.
1015
- side_offset: The distance in pixels from the trigger. Defaults to 0.
1016
- align_offset: An offset in pixels from the "start" or "end" alignment options.
1017
- avoid_collisions: When true, overrides the side and align preferences to prevent collisions with boundary edges. Defaults to True.
1018
- 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.
1019
- arrow_padding: 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.
1020
- 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".
1021
- hide_when_detached: Whether to hide the content when the trigger becomes fully occluded. Defaults to False.
1022
- style: The style of the component.
1023
- key: A unique key for the component.
1024
- id: The id for the component.
1025
- class_name: The class name for the component.
1026
- autofocus: Whether the component should take the focus once the page is loaded
1027
- _rename_props: props to change the name of
1028
- custom_attrs: custom attribute
1029
- **props: Component properties.
1030
-
1031
- Returns:
1032
- A new component instance.
1033
- """
1034
- ...
1035
-
1036
- class DropdownMenuItem(RadixThemesComponent):
1037
- def get_event_triggers(self) -> Dict[str, Any]: ...
1038
- @overload
1039
- @classmethod
1040
- def create( # type: ignore
1041
- cls,
1042
- *children,
1043
- color: Optional[Union[Var[str], str]] = None,
1044
- color_scheme: Optional[
1045
- Union[
1046
- Var[
1047
- Literal[
1048
- "tomato",
1049
- "red",
1050
- "ruby",
1051
- "crimson",
1052
- "pink",
1053
- "plum",
1054
- "purple",
1055
- "violet",
1056
- "iris",
1057
- "indigo",
1058
- "blue",
1059
- "cyan",
1060
- "teal",
1061
- "jade",
1062
- "green",
1063
- "grass",
1064
- "brown",
1065
- "orange",
1066
- "sky",
1067
- "mint",
1068
- "lime",
1069
- "yellow",
1070
- "amber",
1071
- "gold",
1072
- "bronze",
1073
- "gray",
1074
- ]
1075
- ],
1076
- Literal[
1077
- "tomato",
1078
- "red",
1079
- "ruby",
1080
- "crimson",
1081
- "pink",
1082
- "plum",
1083
- "purple",
1084
- "violet",
1085
- "iris",
1086
- "indigo",
1087
- "blue",
1088
- "cyan",
1089
- "teal",
1090
- "jade",
1091
- "green",
1092
- "grass",
1093
- "brown",
1094
- "orange",
1095
- "sky",
1096
- "mint",
1097
- "lime",
1098
- "yellow",
1099
- "amber",
1100
- "gold",
1101
- "bronze",
1102
- "gray",
1103
- ],
1104
- ]
1105
- ] = None,
1106
- shortcut: Optional[Union[Var[str], str]] = None,
1107
- as_child: Optional[Union[Var[bool], bool]] = None,
1108
- disabled: Optional[Union[Var[bool], bool]] = None,
1109
- text_value: Optional[Union[Var[str], str]] = None,
1110
- style: Optional[Style] = None,
1111
- key: Optional[Any] = None,
1112
- id: Optional[Any] = None,
1113
- class_name: Optional[Any] = None,
1114
- autofocus: Optional[bool] = None,
1115
- _rename_props: Optional[Dict[str, str]] = None,
1116
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1117
- on_blur: Optional[
1118
- Union[EventHandler, EventSpec, list, function, BaseVar]
1119
- ] = None,
1120
- on_click: Optional[
1121
- Union[EventHandler, EventSpec, list, function, BaseVar]
1122
- ] = None,
1123
- on_context_menu: Optional[
1124
- Union[EventHandler, EventSpec, list, function, BaseVar]
1125
- ] = None,
1126
- on_double_click: Optional[
1127
- Union[EventHandler, EventSpec, list, function, BaseVar]
1128
- ] = None,
1129
- on_focus: Optional[
1130
- Union[EventHandler, EventSpec, list, function, BaseVar]
1131
- ] = None,
1132
- on_mount: Optional[
1133
- Union[EventHandler, EventSpec, list, function, BaseVar]
1134
- ] = None,
1135
- on_mouse_down: Optional[
1136
- Union[EventHandler, EventSpec, list, function, BaseVar]
1137
- ] = None,
1138
- on_mouse_enter: Optional[
1139
- Union[EventHandler, EventSpec, list, function, BaseVar]
1140
- ] = None,
1141
- on_mouse_leave: Optional[
1142
- Union[EventHandler, EventSpec, list, function, BaseVar]
1143
- ] = None,
1144
- on_mouse_move: Optional[
1145
- Union[EventHandler, EventSpec, list, function, BaseVar]
1146
- ] = None,
1147
- on_mouse_out: Optional[
1148
- Union[EventHandler, EventSpec, list, function, BaseVar]
1149
- ] = None,
1150
- on_mouse_over: Optional[
1151
- Union[EventHandler, EventSpec, list, function, BaseVar]
1152
- ] = None,
1153
- on_mouse_up: Optional[
1154
- Union[EventHandler, EventSpec, list, function, BaseVar]
1155
- ] = None,
1156
- on_scroll: Optional[
1157
- Union[EventHandler, EventSpec, list, function, BaseVar]
1158
- ] = None,
1159
- on_select: Optional[
1160
- Union[EventHandler, EventSpec, list, function, BaseVar]
1161
- ] = None,
1162
- on_unmount: Optional[
1163
- Union[EventHandler, EventSpec, list, function, BaseVar]
1164
- ] = None,
1165
- **props
1166
- ) -> "DropdownMenuItem":
1167
- """Create a new component instance.
1168
-
1169
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
1170
- other UI libraries for common names, like Text and Button.
1171
-
1172
- Args:
1173
- *children: Child components.
1174
- color: map to CSS default color property.
1175
- color_scheme: map to radix color property.
1176
- shortcut: Shortcut to render a menu item as a link
1177
- as_child: Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
1178
- disabled: When true, prevents the user from interacting with the item.
1179
- 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.
1180
- style: The style of the component.
1181
- key: A unique key for the component.
1182
- id: The id for the component.
1183
- class_name: The class name for the component.
1184
- autofocus: Whether the component should take the focus once the page is loaded
1185
- _rename_props: props to change the name of
1186
- custom_attrs: custom attribute
1187
- **props: Component properties.
1188
-
1189
- Returns:
1190
- A new component instance.
1191
- """
1192
- ...
1193
-
1194
- class DropdownMenuSeparator(RadixThemesComponent):
1195
- @overload
1196
- @classmethod
1197
- def create( # type: ignore
1198
- cls,
1199
- *children,
1200
- color: Optional[Union[Var[str], str]] = None,
1201
- color_scheme: Optional[
1202
- Union[
1203
- Var[
1204
- Literal[
1205
- "tomato",
1206
- "red",
1207
- "ruby",
1208
- "crimson",
1209
- "pink",
1210
- "plum",
1211
- "purple",
1212
- "violet",
1213
- "iris",
1214
- "indigo",
1215
- "blue",
1216
- "cyan",
1217
- "teal",
1218
- "jade",
1219
- "green",
1220
- "grass",
1221
- "brown",
1222
- "orange",
1223
- "sky",
1224
- "mint",
1225
- "lime",
1226
- "yellow",
1227
- "amber",
1228
- "gold",
1229
- "bronze",
1230
- "gray",
1231
- ]
1232
- ],
1233
- Literal[
1234
- "tomato",
1235
- "red",
1236
- "ruby",
1237
- "crimson",
1238
- "pink",
1239
- "plum",
1240
- "purple",
1241
- "violet",
1242
- "iris",
1243
- "indigo",
1244
- "blue",
1245
- "cyan",
1246
- "teal",
1247
- "jade",
1248
- "green",
1249
- "grass",
1250
- "brown",
1251
- "orange",
1252
- "sky",
1253
- "mint",
1254
- "lime",
1255
- "yellow",
1256
- "amber",
1257
- "gold",
1258
- "bronze",
1259
- "gray",
1260
- ],
1261
- ]
1262
- ] = None,
1263
- style: Optional[Style] = None,
1264
- key: Optional[Any] = None,
1265
- id: Optional[Any] = None,
1266
- class_name: Optional[Any] = None,
1267
- autofocus: Optional[bool] = None,
1268
- _rename_props: Optional[Dict[str, str]] = None,
1269
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
1270
- on_blur: Optional[
1271
- Union[EventHandler, EventSpec, list, function, BaseVar]
1272
- ] = None,
1273
- on_click: Optional[
1274
- Union[EventHandler, EventSpec, list, function, BaseVar]
1275
- ] = None,
1276
- on_context_menu: Optional[
1277
- Union[EventHandler, EventSpec, list, function, BaseVar]
1278
- ] = None,
1279
- on_double_click: Optional[
1280
- Union[EventHandler, EventSpec, list, function, BaseVar]
1281
- ] = None,
1282
- on_focus: Optional[
1283
- Union[EventHandler, EventSpec, list, function, BaseVar]
1284
- ] = None,
1285
- on_mount: Optional[
1286
- Union[EventHandler, EventSpec, list, function, BaseVar]
1287
- ] = None,
1288
- on_mouse_down: Optional[
1289
- Union[EventHandler, EventSpec, list, function, BaseVar]
1290
- ] = None,
1291
- on_mouse_enter: Optional[
1292
- Union[EventHandler, EventSpec, list, function, BaseVar]
1293
- ] = None,
1294
- on_mouse_leave: Optional[
1295
- Union[EventHandler, EventSpec, list, function, BaseVar]
1296
- ] = None,
1297
- on_mouse_move: Optional[
1298
- Union[EventHandler, EventSpec, list, function, BaseVar]
1299
- ] = None,
1300
- on_mouse_out: Optional[
1301
- Union[EventHandler, EventSpec, list, function, BaseVar]
1302
- ] = None,
1303
- on_mouse_over: Optional[
1304
- Union[EventHandler, EventSpec, list, function, BaseVar]
1305
- ] = None,
1306
- on_mouse_up: Optional[
1307
- Union[EventHandler, EventSpec, list, function, BaseVar]
1308
- ] = None,
1309
- on_scroll: Optional[
1310
- Union[EventHandler, EventSpec, list, function, BaseVar]
1311
- ] = None,
1312
- on_unmount: Optional[
1313
- Union[EventHandler, EventSpec, list, function, BaseVar]
1314
- ] = None,
1315
- **props
1316
- ) -> "DropdownMenuSeparator":
1317
- """Create a new component instance.
1318
-
1319
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
1320
- other UI libraries for common names, like Text and Button.
1321
-
1322
- Args:
1323
- *children: Child components.
1324
- color: map to CSS default color property.
1325
- color_scheme: map to radix color property.
1326
- style: The style of the component.
1327
- key: A unique key for the component.
1328
- id: The id for the component.
1329
- class_name: The class name for the component.
1330
- autofocus: Whether the component should take the focus once the page is loaded
1331
- _rename_props: props to change the name of
1332
- custom_attrs: custom attribute
1333
- **props: Component properties.
1334
-
1335
- Returns:
1336
- A new component instance.
1337
- """
1338
- ...
1339
-
1340
- class DropdownMenu(SimpleNamespace):
1341
- root = staticmethod(DropdownMenuRoot.create)
1342
- trigger = staticmethod(DropdownMenuTrigger.create)
1343
- content = staticmethod(DropdownMenuContent.create)
1344
- sub_trigger = staticmethod(DropdownMenuSubTrigger.create)
1345
- sub = staticmethod(DropdownMenuSub.create)
1346
- sub_content = staticmethod(DropdownMenuSubContent.create)
1347
- item = staticmethod(DropdownMenuItem.create)
1348
- separator = staticmethod(DropdownMenuSeparator.create)
1349
-
1350
- dropdown_menu = DropdownMenu()