Skip to main content
Kaleidoscope

ChoiceChips

Use ChoiceChips to offer related, but mutually exclusive options to choose from.

Default

The <ChoiceChips /> component renders a group of <ChoiceChipsOption /> children, and provides an onChange handler to manage state.

Editable example

Best practices

Functionally, ChoiceChips are similar to SegmentedControl. Use ChoiceChips when you have a larger number of options to select from that all need to be visible at once, and SegmentedControl when you have fewer options that should all display on a single line.

Add a label

By default the label is visually hidden. To show the label, add the prop labelHidden={false}.

Editable example

Alignment

This component can be left or center aligned. Use the align prop to specify which alignment to use.

Editable example

Accessibility

Always provide a meaningful label that describes the choices. Even when the label is hidden it is used by screen readers to provide context about the options.