Kinetik UI

Topic Picker

.md

Topic chips drifting in rows that run opposite ways; picking one pops it in a soft colour.

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

Installation

Kinetik CLI
npx kinetik-ui add topic-picker

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/topic-picker.json

Install manually

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

Usage

import { TopicPicker } from '@/components/kinetik/topic-picker';

<TopicPicker
  topics={[
    { id: 'basketball', label: 'Basketball', emoji: '๐Ÿ€' },
    { id: 'fruits', label: 'Fruits', emoji: '๐Ÿ‹' },
    { id: 'weather', label: 'Weather', emoji: 'โ˜”' },
  ]}
  selected={interests}
  onChange={setInterests}
  minimum={3}
  submit={{ label: 'Submit', onPress: saveInterests }}
/>;

When to use

  • Picking interests during onboarding, from roughly nine to thirty short topics.

When not to use

  • Choices people must read carefully: moving targets are harder to read. Use a static grid.
  • A single choice: use radios or Choice Cards.

Notes

  • Topics are dealt across rows in turn; rows drift in opposite directions at slightly different speeds.
  • With reduced motion the rows stop drifting and scroll by hand instead.
  • Picked chips take a soft colour from the theme accents, so the set stays on palette.

Props

TopicPickerProps

PropTypeDefaultDescription
topicsrequiredreadonly Topic[]โ€”
selectedrequiredreadonly string[]โ€”Ids of the picked topics.
onChangerequired(selected: string[]) => voidโ€”
titlestring'Select your topics'
subtitlestring'Choose topics that you are interested in'
rowsnumber3Rows of drifting chips. Topics are dealt across them in turn. Defaults to 3.
speednumber22Drift speed in pt per second. Defaults to 22.
submit{ label: string; onPress: (selected: string[]) => void }โ€”The button under the rows. Disabled until `minimum` topics are picked.
minimumnumber1Defaults to 1.
hapticsbooleantrueA tick on each pick. Defaults to true.
styleStyleProp<ViewStyle>โ€”

Performance and accessibility

Performance

Budget
Each row is one looping UI-thread transform; chips only re-render when picked.
Measured

Pixel 9 emulator, API 35, release build ยท interaction median 1.29ร— the system Settings app on the same emulator (indicative only) ยท keeps drawing at rest ยท 159 MB app memory. Animating at rest: the rows drift continuously. Chips carry no shadow, which took frames from 28 to 22 ms here.

Real-device measurement pending.

Accessibility

Reduced motion
Rows hold still and scroll by hand instead of drifting; chips do not pop.
Screen readers
Each topic is a checkbox with its checked state; copies used for the loop are hidden. The submit button is disabled until enough are picked.
Touch target
Chips are 48 pt tall; the submit button is 60 pt.

Source files

components/kinetik/topic-picker.tsx is in the Code tab of the preview above.