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

* fix: Adding code comments for segmented control type

* fix: Manually adding info about type
This commit is contained in:
elvis kahoro 2024-09-16 17:42:45 -07:00 committed by GitHub
parent fe9f3a7088
commit 5f12243fe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

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

View File

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