Skip to Content
This package is deprecated. Check out the successor: Chunk UI Kit
DocsComponentsToggleGroup

ToggleGroup

Use the ToggleGroup component to select a single option from a short list of options for example toggling text alignment.


Component API

Props of ToggleGroup component.

PropDefaultDescription
options
ToggleGroupOption[]

Options to select, see ToggleGroupOption below

onChange
(value: T = string): void;

Callback when the value changes. Type of value is inherited from the options - string is default

Props of ToggleGroupOption component.

PropDefaultDescription
label
string | React.ReactNode

The title of the option

value
string

The value of the option

disabled
boolean

Is option disabled?

Last updated on