Skip to content

Forms

FilterChips

Quick filters above a list or table, as toggle buttons in a labelled group.

  • Experimental
  • Keyboard tested
  • Screen reader not tested yet

Updated 2026-11-12

Playground

Change the props. The controls come from the documented props.
tsx
<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

Do
  • Use for two to eight frequent filters; show the result count next to the list.
Don’t
  • Don't use chips for navigation or for form answers; use TabNav or RadioGroup.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. grouprole=group with the label as its name.
  2. option32px pill-shaped toggle button, border.control.
  3. indicatorCheck mark on selected chips, next to the inverted fill.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { FilterChips } from "@/ds";

Multiple

Single

Props

Checked against the component's TypeScript type on every build.
FilterChips props
NameTypeDefaultDescription
label (required)string–Names the group, e.g. “Filter by industry”.
options (required)FilterChipOption[]–value and label per chip.
selectedstring[]–Controlled selection.
defaultSelectedstring[][]Initial selection when uncontrolled.
onChange(selected: string[]) => void–Called with the new selection.
multiplebooleantruefalse: selecting one chip clears the others.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by FilterChips
TokenTierValueUtility
filterChip.bordercomponent#8A8578
filterChip.borderHovercomponent#0A0A0B
filterChip.fgcomponent#0A0A0B
filterChip.minHeightcomponent32px
filterChip.paddingXcomponent16px
filterChip.radiuscomponent9999px
filterChip.selectedBgcomponent#0A0A0B
filterChip.selectedFgcomponent#FAFAF7
focussemantic#C6492E
motion.duration.fastsemantic150ms
motion.ease.outsemanticcubic-bezier(0.16, 1, 0.3, 1)
spacing.2semantic8px
spacing.4semantic16px
surface.pagesemantic#FAFAF7
type.small.sizesemantic14px
weight.mediumsemantic500

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Tested
Screen readerManualNot tested yet

Keyboard

FilterChips keyboard interactions
KeyAction
TabMoves from chip to chip.
Enter / SpaceToggles 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

FilterChips contrast pairings
PairingRatio (x:1)MinimumStatus
text.primary on surface.page18.924.5Pass
text.onInverse on surface.inverse18.924.5Pass
border.control on surface.page3.523.0Pass
focus on surface.page4.573.0Pass
surface.inverse on text.onInverse18.924.5Pass
border.control on surface.inverse5.383.0Pass