Forms
FilterChips
Quick filters above a list or table, as toggle buttons in a labelled group.
- Experimental
- Keyboard tested
- Screen reader not tested yet
Playground
<FilterChips
label="Filter by year"
options={[
{ value: "2024", label: "2024" },
{ value: "2025", label: "2025" },
{ value: "2026", label: "2026" },
]}
/>Usage
When to use
Use filter chips for two to eight frequent filters directly above a list or table, where people switch filters often and want to see the result at once.
When not to use
- For navigation between pages: use TabNav.
- For an answer in a form: use RadioGroup or Checkbox.
- For many or rare filters: put them in a filter panel, which the system doesn't have yet.
How it works
Each chip is a toggle button with aria-pressed, in a group named by label. A selected chip is filled with ink and shows a check mark, so the state never depends on colour alone. With multiple (the default) several chips can be on; with multiple={false} selecting one clears the others. Use selected and onChange to control it, or defaultSelected to start with a selection.
Content guidelines
Chip labels are the values, not sentences: “Insurance”, not “Show insurance”. The group label names what is filtered: “Filter by industry”. Show the number of results next to the list, and an EmptyState with “Clear filter” when nothing is left.
Do and don’t
- Use for two to eight frequent filters; show the result count next to the list.
- Don't use chips for navigation or for form answers; use TabNav or RadioGroup.
Anatomy
- grouprole=group with the label as its name.
- option32px pill-shaped toggle button, border.control.
- indicatorCheck mark on selected chips, next to the inverted fill.
Examples
Multiple
Single
Props
| Name | Type | Default | Description |
|---|---|---|---|
| label (required) | string | – | Names the group, e.g. “Filter by industry”. |
| options (required) | FilterChipOption[] | – | value and label per chip. |
| selected | string[] | – | Controlled selection. |
| defaultSelected | string[] | [] | Initial selection when uncontrolled. |
| onChange | (selected: string[]) => void | – | Called with the new selection. |
| multiple | boolean | true | false: selecting one chip clears the others. |
Tokens used
| Token | Tier | Value | Utility |
|---|---|---|---|
| filterChip.border | component | #8A8578 | |
| filterChip.borderHover | component | #0A0A0B | |
| filterChip.fg | component | #0A0A0B | |
| filterChip.minHeight | component | 32px | |
| filterChip.paddingX | component | 16px | |
| filterChip.radius | component | 9999px | |
| filterChip.selectedBg | component | #0A0A0B | |
| filterChip.selectedFg | component | #FAFAF7 | |
| focus | semantic | #C6492E | |
| motion.duration.fast | semantic | 150ms | |
| motion.ease.out | semantic | cubic-bezier(0.16, 1, 0.3, 1) | |
| spacing.2 | semantic | 8px | |
| spacing.4 | semantic | 16px | |
| surface.page | semantic | #FAFAF7 | |
| type.small.size | semantic | 14px | |
| weight.medium | semantic | 500 |
Accessibility
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Tested |
| Screen reader | Manual | Not tested yet |
Keyboard
| Key | Action |
|---|---|
| Tab | Moves from chip to chip. |
| Enter / Space | Toggles the focused chip. |
Semantics and focus
- Native buttons with aria-pressed: screen readers announce “pressed”.
- Selected is shown by the inverted fill and a check mark, never by colour alone.
- 32px height, above the 24px target minimum.
Contrast
| Pairing | Ratio (x:1) | Minimum | Status |
|---|---|---|---|
| text.primary on surface.page | 18.92 | 4.5 | Pass |
| text.onInverse on surface.inverse | 18.92 | 4.5 | Pass |
| border.control on surface.page | 3.52 | 3.0 | Pass |
| focus on surface.page | 4.57 | 3.0 | Pass |
| surface.inverse on text.onInverse | 18.92 | 4.5 | Pass |
| border.control on surface.inverse | 5.38 | 3.0 | Pass |