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

on_change
This commit is contained in:
elvis kahoro 2024-09-16 14:42:28 -07:00 committed by GitHub
parent da973299f2
commit 37920d6a83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -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"}

View File

@ -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.