فهرست منبع

fix: Adding in-line comments for the segmented control: value and (#3933)

on_change
elvis kahoro 8 ماه پیش
والد
کامیت
37920d6a83

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

@@ -34,8 +34,10 @@ class SegmentedControlRoot(RadixThemesComponent):
     # The default value of the segmented control.
     default_value: Var[Union[str, List[str]]]
 
+    # The current value of the segmented control.
     value: Var[Union[str, List[str]]]
 
+    # Handles the `onChange` event for the SegmentedControl component.
     on_change: EventHandler[lambda e0: [e0]]
 
     _rename_props = {"onChange": "onValueChange"}

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

@@ -164,6 +164,7 @@ class SegmentedControlRoot(RadixThemesComponent):
             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.
+            value: The current value of the segmented control.
             style: The style of the component.
             key: A unique key for the component.
             id: The id for the component.