Kinetik UI

Choice Cards

.md

Option cards for a single choice: one selection ring glides between cards, stretching to fit each one.

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

Installation

Kinetik CLI
npx kinetik-ui add choice-cards

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/choice-cards.json

Install manually

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

Usage

import { ChoiceCards } from '@/components/kinetik/choice-cards';

<ChoiceCards
  accessibilityLabel="Delivery"
  options={[
    { value: 'standard', title: 'Standard', description: '3 to 5 days', detail: 'Free' },
    { value: 'express', title: 'Express', description: 'Next day', detail: '$9', badge: 'Fast' },
  ]}
  value={delivery}
  onValueChange={setDelivery}
/>;

When to use

  • A single choice between a few options that each need a line of explanation: plans, delivery speeds, payment methods.
  • Choices where a price or another figure helps people compare.

When not to use

  • More than five or six options. Use a list or a picker.
  • Options that need no explanation. Use a segmented control or plain radios.

Notes

  • Cards can have different heights; the ring stretches to each card as it travels.
  • disabled greys out an option and keeps it in the list, so people can see what is not available.
  • With reduced motion the ring jumps to the new card.

Props

ChoiceCardsProps

PropTypeDefaultDescription
optionsrequiredreadonly ChoiceCardOption[]—
valuerequiredstring—
onValueChangerequired(value: string) => void—
accessibilityLabelrequiredstring—Names the group for screen readers, e.g. "Delivery speed".
hapticsbooleantrueA tick when the choice changes. Defaults to true.
testIDstring—
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Plain views. One ring moves on two shared values, and each card has one for its radio. Nothing runs at rest.
Measured

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

Real-device measurement pending.

Accessibility

Reduced motion
The ring jumps to the new card and the radio fills at once.
Screen readers
A radio group named by accessibilityLabel; each card is a radio that reads its title, badge, detail and description.
Touch target
Each card is the target, at least 64 pt tall.

Source files

components/kinetik/choice-cards.tsx is in the Code tab of the preview above.