OptionaldefaultValue?: string | nullInitially selected value when uncontrolled.
OptionalonValueChange?: (value: string | null) => voidCalled with the selected value, or null when the selected item is turned off.
Optionalrequired?: booleanPrevents turning the selected item off, so one is always on.
One item on at a time, like a segmented control.
Optionalvalue?: string | nullControlled selected value.
OptionaldefaultValue?: string[]Initially selected values when uncontrolled.
OptionalonValueChange?: (value: string[]) => voidCalled with all selected values.
Optionalrequired?: neverAny number of items on, like formatting buttons.
Optionalvalue?: string[]Controlled selected values.
Props for ToggleGroup.
typedecides whether one or many items can be on.