Selaa lähdekoodia

fix: Adding code comments for segmented control type (#3935)

* fix: Adding code comments for segmented control type

* fix: Manually adding info about type
elvis kahoro 8 kuukautta sitten
vanhempi
säilyke
5f12243fe4

+ 1 - 0
reflex/components/radix/themes/components/segmented_control.py

@@ -23,6 +23,7 @@ class SegmentedControlRoot(RadixThemesComponent):
     # Variant of button: "classic" | "surface"
     variant: Var[Literal["classic", "surface"]]
 
+    # The type of the segmented control, either "single" for selecting one option or "multiple" for selecting multiple options.
     type: Var[Literal["single", "multiple"]]
 
     # Override theme color for button

+ 1 - 0
reflex/components/radix/themes/components/segmented_control.pyi

@@ -161,6 +161,7 @@ class SegmentedControlRoot(RadixThemesComponent):
             *children: Child components.
             size: The size of the segmented control: "1" | "2" | "3"
             variant: Variant of button: "classic" | "surface"
+            type: The type of the segmented control, either "single" for selecting one option or "multiple" for selecting multiple options.
             color_scheme: Override theme color for button
             radius: The radius of the segmented control: "none" | "small" | "medium" | "large" | "full"
             default_value: The default value of the segmented control.