Kinetik UI

Plan Picker

.md

Plan cards in a tray: the pick lifts with a popping check, over a button with streaming chevrons.

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

Installation

Kinetik CLI
npx kinetik-ui add plan-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/plan-picker.json

Install manually

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

Usage

import { PlanPicker } from '@/components/kinetik/plan-picker';

<PlanPicker
  value={plan}
  onChange={setPlan}
  plans={[
    {
      id: 'yearly',
      title: 'Yearly',
      note: '14-day free trial',
      monthly: '7.49$',
      billed: '89.98/yr',
    },
    { id: 'monthly', title: 'Monthly', note: '7-day free trial', monthly: '9.98$' },
  ]}
  footnote="If you don’t like it, we’ll give your money back."
  cta={{ label: 'Start free trial', onPress: () => purchases.buy(plan) }}
/>;

When to use

  • Choosing between two or three subscription plans on a paywall or upgrade sheet.

When not to use

  • More than three plans: compare them in a table instead.
  • Plans that differ in features, not price: list the features, not just the trials.

Notes

  • Prices are strings so you can pass the store's localised prices as they are.
  • Plan names use the platform's italic serif (Georgia on iOS and the web, the system serif on Android).
  • The button's chevrons stream towards the label in a loop; with reduced motion they hold still.

Props

PlanPickerProps

PropTypeDefaultDescription
plansrequiredreadonly PickerPlan[]—
valuerequiredstring—
onChangerequired(id: string) => void—
footnotestring—A reassurance line under the plans.
cta{ label: string; onPress: () => void }—The button under the tray.
hapticsbooleantrueA tick when the plan changes. Defaults to true.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Card lifts and checks are UI-thread springs on change; the button chevrons loop on the UI thread while it is on screen.
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 · 158 MB app memory. Animating at rest: the button chevrons stream in a loop while it is on screen.

Real-device measurement pending.

Accessibility

Reduced motion
Cards and checks change without springing and the chevrons hold still at fixed brightness.
Screen readers
A radio group; each plan is a radio reading its name, trial, monthly price and billing. The button is named by its label.
Touch target
Plan cards are over 80 pt tall; the button is 64 pt.

Source files

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