From 37920d6a838d5ba5727c0b25217774dd1e0534a5 Mon Sep 17 00:00:00 2001
From: elvis kahoro <elvis@reflex.dev>
Date: Mon, 16 Sep 2024 14:42:28 -0700
Subject: [PATCH] fix: Adding in-line comments for the segmented control: value
 and (#3933)

on_change
---
 reflex/components/radix/themes/components/segmented_control.py  | 2 ++
 reflex/components/radix/themes/components/segmented_control.pyi | 1 +
 2 files changed, 3 insertions(+)

diff --git a/reflex/components/radix/themes/components/segmented_control.py b/reflex/components/radix/themes/components/segmented_control.py
index c9c6ea4c7..3f71c1328 100644
--- a/reflex/components/radix/themes/components/segmented_control.py
+++ b/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"}
diff --git a/reflex/components/radix/themes/components/segmented_control.pyi b/reflex/components/radix/themes/components/segmented_control.pyi
index 6546f50d1..4bbcaf87f 100644
--- a/reflex/components/radix/themes/components/segmented_control.pyi
+++ b/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.