value
RequiredDescription
The value of the segmented control button.
Type
stringLeave Yamada UI a star
StarSegmentedControl is a component used for allowing users to select one option from multiple choices.
Description
The value of the segmented control button.
Type
stringDescription
If true, the segmented control will be disabled.
Type
booleanDefault
falseDescription
If true, the segmented control will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the segmented control will be readonly.
Deprecated
Use readOnly instead.
Type
booleanDefault
falseDescription
Props for motion component.
Type
MotionPropsDescription
The callback fired when any children radio is checked or unchecked.
Type
ChangeEventHandler<HTMLInputElement>Description
If true, the segmented control will be readonly.
Type
booleanDefault
falseDescription
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"Description
The initial value of the segmented control.
Type
stringDescription
If true, the segmented control will be disabled.
Type
booleanDefault
falseDescription
If true, the segmented control will be disabled.
Deprecated
Use disabled instead.
Type
booleanDefault
falseDescription
If true, the segmented control will be readonly.
Deprecated
Use readOnly instead.
Type
booleanDefault
falseDescription
If provided, generate segmented control buttons but based on items.
Type
SegmentedControlItem[]Default
'[]'Description
The HTML name attribute used for forms.
Type
stringDescription
The callback fired when any children radio is checked or unchecked.
Type
(value: string) => voidDescription
If true, the segmented control will be readonly.
Type
booleanDefault
falseDescription
The size of the SegmentedControl.
Type
"sm" | "md" | "lg"Default
"md"Description
The value of the segmented control.
Type
stringDescription
The variant of the SegmentedControl.
Type
"basic" | "rounded"Default
"basic"Edit this page on GitHub