Toggle Group
Group of mutually-exclusive or multi-select toggle buttons.
Generated from the package's public source.
API
Itemcomponent
Item(props: ToggleGroupItemProps): Element
Props
class?stringdisabled?booleanstyle?string | CSSPropertiesvaluestring— The value this item represents.
children: Element
Rootcomponent
Root(props: ToggleGroupRootProps): Element
Props
class?stringdefaultValue?string[]— Default value (uncontrolled).disabled?booleanonValueChange?(value: string[]) => void— Called when the selected values change.orientation?"horizontal" | "vertical"— Layout orientation.style?string | CSSPropertiestype?"single" | "multiple"— Selection mode: "single" allows one active item, "multiple" allows many.value?Accessor<string[] | undefined>— Controlled value.
children: Element
ToggleGroupItemPropsinterface
Props
class?stringdisabled?booleanstyle?string | CSSPropertiesvaluestring— The value this item represents.
children: Element
ToggleGroupRootPropsinterface
Props
class?stringdefaultValue?string[]— Default value (uncontrolled).disabled?booleanonValueChange?(value: string[]) => void— Called when the selected values change.orientation?"horizontal" | "vertical"— Layout orientation.style?string | CSSPropertiestype?"single" | "multiple"— Selection mode: "single" allows one active item, "multiple" allows many.value?Accessor<string[] | undefined>— Controlled value.
children: Element