Kinetik UI

Filter Chips

.md

Chips that change shape when picked: a check slides in, the chip grows to fit and its outline turns to a tint.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add filter-chips

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/filter-chips.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/filter-chips.tsx
    View source files

Usage

import { FilterChips } from '@/components/kinetik/filter-chips';

<FilterChips
  accessibilityLabel="Filter by type"
  options={[
    { value: 'photos', label: 'Photos', count: 48 },
    { value: 'videos', label: 'Videos', count: 6 },
  ]}
  value={types}
  onValueChange={setTypes}
/>;

Set multiple={false} for a single choice: the chips become radios and a press always leaves exactly one picked.

When to use

  • Narrowing a list or a grid by a few facets: type, place, status, size.
  • Picking interests or tags during onboarding.

When not to use

  • More than a dozen options. Use a searchable list.
  • Switching between views of the same content. Use tabs or a segmented control.

Notes

  • The chips wrap onto as many lines as they need. A picked chip grows by the width of its check, and the chips after it make room.
  • count is shown after the label in a quieter colour and read after it.
  • With reduced motion the chips change colour and show the check without growing.

Props

FilterChipsProps

PropTypeDefaultDescription
optionsrequiredreadonly FilterChipOption[]—
valuerequiredreadonly string[]—Selected values.
onValueChangerequired(value: string[]) => void—
accessibilityLabelrequiredstring—Names the group for screen readers, e.g. "Filter by type".
multiplebooleantruePick any number of chips, or exactly one. Defaults to true.
hapticsbooleantrueA tick on each change. Defaults to true.
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
One shared value per chip. A picked chip's width animates, so the row lays out again for the length of the spring; nothing runs at rest.
Measured

Pixel 9 emulator, API 35, release build · interaction median 0.90× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 152 MB app memory

Real-device measurement pending.

Accessibility

Reduced motion
Chips change colour and show the check at once, without growing.
Screen readers
Checkboxes with a checked state, or radios with a selected state when `multiple` is false. Counts are read after the label.
Touch target
40 pt chips drawn inside 48 pt targets.

Source files

components/kinetik/filter-chips.tsx is in the Code tab of the preview above.