Chips
Alternative to Select and RadioGroup
Import
Source
Docs
Package
Usage
Color
Variant
Spacing
xs
sm
md
lg
xl
Size
xs
sm
md
lg
xl
Radius
xs
sm
md
lg
xl
States
Multiple
Set multiple
prop to enable multiple chips selection:
Controlled
Since Chips component supports both single and multiple state you will need to adjust your state to match multiple
prop:
Chip component
You can use Chip component outside of Chips context:
Change styles with Styles API
Chip and Chips components use the same Styles API schema,
you can use classNames
and styles
listed under Styles API tab in both components:
Accessibility
Chip and Chips components are accessible by default since they are built with native radio/checkbox inputs, all keyboard events work the same as with native controls.