Chip group
v0.23.0One choice among several as chips with counts, folded after N; or links, so a filter lives in the URL. Selected is inverted.
Chip group facet
Install
npx shadcn add @syncrobotic/chip-group Also installs: radix-ui, @syncrobotic/cn
Overview
One choice among several, shown as chips with their counts, folded after a few.
When to use
- A quick filter above a list: task, site, tier.
- Saved views as links, so the choice lives in the URL.
Use something else
- Several choices at once: checkboxes in a Field.
- Two to four views of the same data: Segmented control.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Chip group folded
Chip group saved views
Chip group levels
Usage rules
- One choice among several, with the count each gives. For several choices at once use checkboxes in a FieldSet.
- Selected is inverted, like a selected segment.
- Fold long rows with max; the selected chip always stays visible.
- Chips with href are links: the filter lives in the URL and works without JavaScript.
Changelog
- 0.23.02026-11-20Every word it says can be translated without editing the source:
labels(more,less;moreLabelandlessLabelstill work and win).localeformats the counts. - 0.15.02026-11-19Chips show keyboard focus again, and chips revealed by "N more" appear, and fade out when folded.
- 0.10.02026-11-18New.