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,701 +0,0 @@
1
- """Stub file for reflex/components/radix/themes/components/radiogroup.py"""
2
-
3
- # ------------------- DO NOT EDIT ----------------------
4
- # This file was generated by `scripts/pyi_generator.py`!
5
- # ------------------------------------------------------
6
-
7
- from typing import Any, Dict, Literal, Optional, Union, overload
8
- from reflex.vars import Var, BaseVar, ComputedVar
9
- from reflex.event import EventChain, EventHandler, EventSpec
10
- from reflex.style import Style
11
- from types import SimpleNamespace
12
- from typing import Any, Dict, List, Literal, Optional, Union
13
- import reflex as rx
14
- from reflex.components.component import Component
15
- from reflex.components.radix.themes.layout.flex import Flex
16
- from reflex.components.radix.themes.typography.text import Text
17
- from reflex.constants import EventTriggers
18
- from reflex.vars import Var
19
- from ..base import LiteralAccentColor, LiteralSpacing, RadixThemesComponent
20
-
21
- LiteralFlexDirection = Literal["row", "column", "row-reverse", "column-reverse"]
22
-
23
- class RadioGroupRoot(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
- size: Optional[
94
- Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
95
- ] = None,
96
- variant: Optional[
97
- Union[
98
- Var[Literal["classic", "surface", "soft"]],
99
- Literal["classic", "surface", "soft"],
100
- ]
101
- ] = None,
102
- high_contrast: Optional[Union[Var[bool], bool]] = None,
103
- value: Optional[Union[Var[str], str]] = None,
104
- default_value: Optional[Union[Var[str], str]] = None,
105
- disabled: Optional[Union[Var[bool], bool]] = None,
106
- name: Optional[Union[Var[str], str]] = None,
107
- required: Optional[Union[Var[bool], bool]] = None,
108
- style: Optional[Style] = None,
109
- key: Optional[Any] = None,
110
- id: Optional[Any] = None,
111
- class_name: Optional[Any] = None,
112
- autofocus: Optional[bool] = None,
113
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
114
- on_blur: Optional[
115
- Union[EventHandler, EventSpec, list, function, BaseVar]
116
- ] = None,
117
- on_change: Optional[
118
- Union[EventHandler, EventSpec, list, function, BaseVar]
119
- ] = None,
120
- on_click: Optional[
121
- Union[EventHandler, EventSpec, list, function, BaseVar]
122
- ] = None,
123
- on_context_menu: Optional[
124
- Union[EventHandler, EventSpec, list, function, BaseVar]
125
- ] = None,
126
- on_double_click: Optional[
127
- Union[EventHandler, EventSpec, list, function, BaseVar]
128
- ] = None,
129
- on_focus: Optional[
130
- Union[EventHandler, EventSpec, list, function, BaseVar]
131
- ] = None,
132
- on_mount: Optional[
133
- Union[EventHandler, EventSpec, list, function, BaseVar]
134
- ] = None,
135
- on_mouse_down: Optional[
136
- Union[EventHandler, EventSpec, list, function, BaseVar]
137
- ] = None,
138
- on_mouse_enter: Optional[
139
- Union[EventHandler, EventSpec, list, function, BaseVar]
140
- ] = None,
141
- on_mouse_leave: Optional[
142
- Union[EventHandler, EventSpec, list, function, BaseVar]
143
- ] = None,
144
- on_mouse_move: Optional[
145
- Union[EventHandler, EventSpec, list, function, BaseVar]
146
- ] = None,
147
- on_mouse_out: Optional[
148
- Union[EventHandler, EventSpec, list, function, BaseVar]
149
- ] = None,
150
- on_mouse_over: Optional[
151
- Union[EventHandler, EventSpec, list, function, BaseVar]
152
- ] = None,
153
- on_mouse_up: Optional[
154
- Union[EventHandler, EventSpec, list, function, BaseVar]
155
- ] = None,
156
- on_scroll: Optional[
157
- Union[EventHandler, EventSpec, list, function, BaseVar]
158
- ] = None,
159
- on_unmount: Optional[
160
- Union[EventHandler, EventSpec, list, function, BaseVar]
161
- ] = None,
162
- **props
163
- ) -> "RadioGroupRoot":
164
- """Create a new component instance.
165
-
166
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
167
- other UI libraries for common names, like Text and Button.
168
-
169
- Args:
170
- *children: Child components.
171
- color: map to CSS default color property.
172
- color_scheme: map to radix color property.
173
- size: The size of the radio group: "1" | "2" | "3"
174
- variant: The variant of the radio group
175
- high_contrast: Whether to render the radio group with higher contrast color against background
176
- value: The controlled value of the radio item to check. Should be used in conjunction with on_change.
177
- default_value: The initial value of checked radio item. Should be used in conjunction with on_change.
178
- disabled: Whether the radio group is disabled
179
- name: The name of the group. Submitted with its owning form as part of a name/value pair.
180
- required: Whether the radio group is required
181
- style: Props to rename The style of the component.
182
- key: A unique key for the component.
183
- id: The id for the component.
184
- class_name: The class name for the component.
185
- autofocus: Whether the component should take the focus once the page is loaded
186
- custom_attrs: custom attribute
187
- **props: Component properties.
188
-
189
- Returns:
190
- A new component instance.
191
- """
192
- ...
193
-
194
- class RadioGroupItem(RadixThemesComponent):
195
- @overload
196
- @classmethod
197
- def create( # type: ignore
198
- cls,
199
- *children,
200
- color: Optional[Union[Var[str], str]] = None,
201
- color_scheme: Optional[
202
- Union[
203
- Var[
204
- Literal[
205
- "tomato",
206
- "red",
207
- "ruby",
208
- "crimson",
209
- "pink",
210
- "plum",
211
- "purple",
212
- "violet",
213
- "iris",
214
- "indigo",
215
- "blue",
216
- "cyan",
217
- "teal",
218
- "jade",
219
- "green",
220
- "grass",
221
- "brown",
222
- "orange",
223
- "sky",
224
- "mint",
225
- "lime",
226
- "yellow",
227
- "amber",
228
- "gold",
229
- "bronze",
230
- "gray",
231
- ]
232
- ],
233
- Literal[
234
- "tomato",
235
- "red",
236
- "ruby",
237
- "crimson",
238
- "pink",
239
- "plum",
240
- "purple",
241
- "violet",
242
- "iris",
243
- "indigo",
244
- "blue",
245
- "cyan",
246
- "teal",
247
- "jade",
248
- "green",
249
- "grass",
250
- "brown",
251
- "orange",
252
- "sky",
253
- "mint",
254
- "lime",
255
- "yellow",
256
- "amber",
257
- "gold",
258
- "bronze",
259
- "gray",
260
- ],
261
- ]
262
- ] = None,
263
- value: Optional[Union[Var[str], str]] = None,
264
- disabled: Optional[Union[Var[bool], bool]] = None,
265
- required: Optional[Union[Var[bool], bool]] = None,
266
- style: Optional[Style] = None,
267
- key: Optional[Any] = None,
268
- id: Optional[Any] = None,
269
- class_name: Optional[Any] = None,
270
- autofocus: Optional[bool] = None,
271
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
272
- on_blur: Optional[
273
- Union[EventHandler, EventSpec, list, function, BaseVar]
274
- ] = None,
275
- on_click: Optional[
276
- Union[EventHandler, EventSpec, list, function, BaseVar]
277
- ] = None,
278
- on_context_menu: Optional[
279
- Union[EventHandler, EventSpec, list, function, BaseVar]
280
- ] = None,
281
- on_double_click: Optional[
282
- Union[EventHandler, EventSpec, list, function, BaseVar]
283
- ] = None,
284
- on_focus: Optional[
285
- Union[EventHandler, EventSpec, list, function, BaseVar]
286
- ] = None,
287
- on_mount: Optional[
288
- Union[EventHandler, EventSpec, list, function, BaseVar]
289
- ] = None,
290
- on_mouse_down: Optional[
291
- Union[EventHandler, EventSpec, list, function, BaseVar]
292
- ] = None,
293
- on_mouse_enter: Optional[
294
- Union[EventHandler, EventSpec, list, function, BaseVar]
295
- ] = None,
296
- on_mouse_leave: Optional[
297
- Union[EventHandler, EventSpec, list, function, BaseVar]
298
- ] = None,
299
- on_mouse_move: Optional[
300
- Union[EventHandler, EventSpec, list, function, BaseVar]
301
- ] = None,
302
- on_mouse_out: Optional[
303
- Union[EventHandler, EventSpec, list, function, BaseVar]
304
- ] = None,
305
- on_mouse_over: Optional[
306
- Union[EventHandler, EventSpec, list, function, BaseVar]
307
- ] = None,
308
- on_mouse_up: Optional[
309
- Union[EventHandler, EventSpec, list, function, BaseVar]
310
- ] = None,
311
- on_scroll: Optional[
312
- Union[EventHandler, EventSpec, list, function, BaseVar]
313
- ] = None,
314
- on_unmount: Optional[
315
- Union[EventHandler, EventSpec, list, function, BaseVar]
316
- ] = None,
317
- **props
318
- ) -> "RadioGroupItem":
319
- """Create a new component instance.
320
-
321
- Will prepend "RadixThemes" to the component tag to avoid conflicts with
322
- other UI libraries for common names, like Text and Button.
323
-
324
- Args:
325
- *children: Child components.
326
- color: map to CSS default color property.
327
- color_scheme: map to radix color property.
328
- value: The value of the radio item to check. Should be used in conjunction with on_change.
329
- disabled: When true, prevents the user from interacting with the radio item.
330
- required: When true, indicates that the user must check the radio item before the owning form can be submitted.
331
- style: The style of the component.
332
- key: A unique key for the component.
333
- id: The id for the component.
334
- class_name: The class name for the component.
335
- autofocus: Whether the component should take the focus once the page is loaded
336
- custom_attrs: custom attribute
337
- **props: Component properties.
338
-
339
- Returns:
340
- A new component instance.
341
- """
342
- ...
343
-
344
- class HighLevelRadioGroup(RadixThemesComponent):
345
- @overload
346
- @classmethod
347
- def create( # type: ignore
348
- cls,
349
- *children,
350
- items: Optional[Union[Var[List[str]], List[str]]] = None,
351
- direction: Optional[
352
- Union[
353
- Var[Literal["row", "column", "row-reverse", "column-reverse"]],
354
- Literal["row", "column", "row-reverse", "column-reverse"],
355
- ]
356
- ] = None,
357
- spacing: Optional[
358
- Union[
359
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
360
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
361
- ]
362
- ] = None,
363
- size: Optional[
364
- Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
365
- ] = None,
366
- variant: Optional[
367
- Union[
368
- Var[Literal["classic", "surface", "soft"]],
369
- Literal["classic", "surface", "soft"],
370
- ]
371
- ] = None,
372
- color_scheme: Optional[
373
- Union[
374
- Var[
375
- Literal[
376
- "tomato",
377
- "red",
378
- "ruby",
379
- "crimson",
380
- "pink",
381
- "plum",
382
- "purple",
383
- "violet",
384
- "iris",
385
- "indigo",
386
- "blue",
387
- "cyan",
388
- "teal",
389
- "jade",
390
- "green",
391
- "grass",
392
- "brown",
393
- "orange",
394
- "sky",
395
- "mint",
396
- "lime",
397
- "yellow",
398
- "amber",
399
- "gold",
400
- "bronze",
401
- "gray",
402
- ]
403
- ],
404
- Literal[
405
- "tomato",
406
- "red",
407
- "ruby",
408
- "crimson",
409
- "pink",
410
- "plum",
411
- "purple",
412
- "violet",
413
- "iris",
414
- "indigo",
415
- "blue",
416
- "cyan",
417
- "teal",
418
- "jade",
419
- "green",
420
- "grass",
421
- "brown",
422
- "orange",
423
- "sky",
424
- "mint",
425
- "lime",
426
- "yellow",
427
- "amber",
428
- "gold",
429
- "bronze",
430
- "gray",
431
- ],
432
- ]
433
- ] = None,
434
- high_contrast: Optional[Union[Var[bool], bool]] = None,
435
- value: Optional[Union[Var[str], str]] = None,
436
- default_value: Optional[Union[Var[str], str]] = None,
437
- disabled: Optional[Union[Var[bool], bool]] = None,
438
- name: Optional[Union[Var[str], str]] = None,
439
- required: Optional[Union[Var[bool], bool]] = None,
440
- style: Optional[Style] = None,
441
- key: Optional[Any] = None,
442
- id: Optional[Any] = None,
443
- class_name: Optional[Any] = None,
444
- autofocus: Optional[bool] = None,
445
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
446
- on_blur: Optional[
447
- Union[EventHandler, EventSpec, list, function, BaseVar]
448
- ] = None,
449
- on_click: Optional[
450
- Union[EventHandler, EventSpec, list, function, BaseVar]
451
- ] = None,
452
- on_context_menu: Optional[
453
- Union[EventHandler, EventSpec, list, function, BaseVar]
454
- ] = None,
455
- on_double_click: Optional[
456
- Union[EventHandler, EventSpec, list, function, BaseVar]
457
- ] = None,
458
- on_focus: Optional[
459
- Union[EventHandler, EventSpec, list, function, BaseVar]
460
- ] = None,
461
- on_mount: Optional[
462
- Union[EventHandler, EventSpec, list, function, BaseVar]
463
- ] = None,
464
- on_mouse_down: Optional[
465
- Union[EventHandler, EventSpec, list, function, BaseVar]
466
- ] = None,
467
- on_mouse_enter: Optional[
468
- Union[EventHandler, EventSpec, list, function, BaseVar]
469
- ] = None,
470
- on_mouse_leave: Optional[
471
- Union[EventHandler, EventSpec, list, function, BaseVar]
472
- ] = None,
473
- on_mouse_move: Optional[
474
- Union[EventHandler, EventSpec, list, function, BaseVar]
475
- ] = None,
476
- on_mouse_out: Optional[
477
- Union[EventHandler, EventSpec, list, function, BaseVar]
478
- ] = None,
479
- on_mouse_over: Optional[
480
- Union[EventHandler, EventSpec, list, function, BaseVar]
481
- ] = None,
482
- on_mouse_up: Optional[
483
- Union[EventHandler, EventSpec, list, function, BaseVar]
484
- ] = None,
485
- on_scroll: Optional[
486
- Union[EventHandler, EventSpec, list, function, BaseVar]
487
- ] = None,
488
- on_unmount: Optional[
489
- Union[EventHandler, EventSpec, list, function, BaseVar]
490
- ] = None,
491
- **props
492
- ) -> "HighLevelRadioGroup":
493
- """Create a radio group component.
494
-
495
- Args:
496
- items: The items of the radio group.
497
- items: The items of the radio group.
498
- direction: The direction of the radio group.
499
- spacing: The gap between the items of the radio group.
500
- size: The size of the radio group.
501
- variant: The variant of the radio group
502
- color_scheme: The color of the radio group
503
- high_contrast: Whether to render the radio group with higher contrast color against background
504
- value: The controlled value of the radio item to check. Should be used in conjunction with on_change.
505
- default_value: The initial value of checked radio item. Should be used in conjunction with on_change.
506
- disabled: Whether the radio group is disabled
507
- name: The name of the group. Submitted with its owning form as part of a name/value pair.
508
- required: Whether the radio group is required
509
- style: Props to rename The style of the component.
510
- key: A unique key for the component.
511
- id: The id for the component.
512
- class_name: The class name for the component.
513
- autofocus: Whether the component should take the focus once the page is loaded
514
- custom_attrs: custom attribute
515
- **props: Additional properties to apply to the accordion item.
516
-
517
- Returns:
518
- The created radio group component.
519
- """
520
- ...
521
-
522
- class RadioGroup(SimpleNamespace):
523
- root = staticmethod(RadioGroupRoot.create)
524
- item = staticmethod(RadioGroupItem.create)
525
-
526
- @staticmethod
527
- def __call__(
528
- *children,
529
- items: Optional[Union[Var[List[str]], List[str]]] = None,
530
- direction: Optional[
531
- Union[
532
- Var[Literal["row", "column", "row-reverse", "column-reverse"]],
533
- Literal["row", "column", "row-reverse", "column-reverse"],
534
- ]
535
- ] = None,
536
- spacing: Optional[
537
- Union[
538
- Var[Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]],
539
- Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"],
540
- ]
541
- ] = None,
542
- size: Optional[
543
- Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
544
- ] = None,
545
- variant: Optional[
546
- Union[
547
- Var[Literal["classic", "surface", "soft"]],
548
- Literal["classic", "surface", "soft"],
549
- ]
550
- ] = None,
551
- color_scheme: Optional[
552
- Union[
553
- Var[
554
- Literal[
555
- "tomato",
556
- "red",
557
- "ruby",
558
- "crimson",
559
- "pink",
560
- "plum",
561
- "purple",
562
- "violet",
563
- "iris",
564
- "indigo",
565
- "blue",
566
- "cyan",
567
- "teal",
568
- "jade",
569
- "green",
570
- "grass",
571
- "brown",
572
- "orange",
573
- "sky",
574
- "mint",
575
- "lime",
576
- "yellow",
577
- "amber",
578
- "gold",
579
- "bronze",
580
- "gray",
581
- ]
582
- ],
583
- Literal[
584
- "tomato",
585
- "red",
586
- "ruby",
587
- "crimson",
588
- "pink",
589
- "plum",
590
- "purple",
591
- "violet",
592
- "iris",
593
- "indigo",
594
- "blue",
595
- "cyan",
596
- "teal",
597
- "jade",
598
- "green",
599
- "grass",
600
- "brown",
601
- "orange",
602
- "sky",
603
- "mint",
604
- "lime",
605
- "yellow",
606
- "amber",
607
- "gold",
608
- "bronze",
609
- "gray",
610
- ],
611
- ]
612
- ] = None,
613
- high_contrast: Optional[Union[Var[bool], bool]] = None,
614
- value: Optional[Union[Var[str], str]] = None,
615
- default_value: Optional[Union[Var[str], str]] = None,
616
- disabled: Optional[Union[Var[bool], bool]] = None,
617
- name: Optional[Union[Var[str], str]] = None,
618
- required: Optional[Union[Var[bool], bool]] = None,
619
- style: Optional[Style] = None,
620
- key: Optional[Any] = None,
621
- id: Optional[Any] = None,
622
- class_name: Optional[Any] = None,
623
- autofocus: Optional[bool] = None,
624
- custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
625
- on_blur: Optional[
626
- Union[EventHandler, EventSpec, list, function, BaseVar]
627
- ] = None,
628
- on_click: Optional[
629
- Union[EventHandler, EventSpec, list, function, BaseVar]
630
- ] = None,
631
- on_context_menu: Optional[
632
- Union[EventHandler, EventSpec, list, function, BaseVar]
633
- ] = None,
634
- on_double_click: Optional[
635
- Union[EventHandler, EventSpec, list, function, BaseVar]
636
- ] = None,
637
- on_focus: Optional[
638
- Union[EventHandler, EventSpec, list, function, BaseVar]
639
- ] = None,
640
- on_mount: Optional[
641
- Union[EventHandler, EventSpec, list, function, BaseVar]
642
- ] = None,
643
- on_mouse_down: Optional[
644
- Union[EventHandler, EventSpec, list, function, BaseVar]
645
- ] = None,
646
- on_mouse_enter: Optional[
647
- Union[EventHandler, EventSpec, list, function, BaseVar]
648
- ] = None,
649
- on_mouse_leave: Optional[
650
- Union[EventHandler, EventSpec, list, function, BaseVar]
651
- ] = None,
652
- on_mouse_move: Optional[
653
- Union[EventHandler, EventSpec, list, function, BaseVar]
654
- ] = None,
655
- on_mouse_out: Optional[
656
- Union[EventHandler, EventSpec, list, function, BaseVar]
657
- ] = None,
658
- on_mouse_over: Optional[
659
- Union[EventHandler, EventSpec, list, function, BaseVar]
660
- ] = None,
661
- on_mouse_up: Optional[
662
- Union[EventHandler, EventSpec, list, function, BaseVar]
663
- ] = None,
664
- on_scroll: Optional[
665
- Union[EventHandler, EventSpec, list, function, BaseVar]
666
- ] = None,
667
- on_unmount: Optional[
668
- Union[EventHandler, EventSpec, list, function, BaseVar]
669
- ] = None,
670
- **props
671
- ) -> "HighLevelRadioGroup":
672
- """Create a radio group component.
673
-
674
- Args:
675
- items: The items of the radio group.
676
- items: The items of the radio group.
677
- direction: The direction of the radio group.
678
- spacing: The gap between the items of the radio group.
679
- size: The size of the radio group.
680
- variant: The variant of the radio group
681
- color_scheme: The color of the radio group
682
- high_contrast: Whether to render the radio group with higher contrast color against background
683
- value: The controlled value of the radio item to check. Should be used in conjunction with on_change.
684
- default_value: The initial value of checked radio item. Should be used in conjunction with on_change.
685
- disabled: Whether the radio group is disabled
686
- name: The name of the group. Submitted with its owning form as part of a name/value pair.
687
- required: Whether the radio group is required
688
- style: Props to rename The style of the component.
689
- key: A unique key for the component.
690
- id: The id for the component.
691
- class_name: The class name for the component.
692
- autofocus: Whether the component should take the focus once the page is loaded
693
- custom_attrs: custom attribute
694
- **props: Additional properties to apply to the accordion item.
695
-
696
- Returns:
697
- The created radio group component.
698
- """
699
- ...
700
-
701
- radio_group = RadioGroup()