Kinetik UI

Seat Picker

.md

A seat counter: armchairs that fill as you add seats, a rolling stepper and a badge of seats left.

v1.0.0Live on web@shopify/react-native-skiareact-native-reanimatedreact-native-worklets
Component preview

Installation

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

Install manually

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

Usage

import { SeatPicker } from '@/components/kinetik/seat-picker';

const [seats, setSeats] = useState(1);

<SeatPicker
  value={seats}
  onChange={setSeats}
  max={plan.seatLimit}
  caption="Add seats now and upgrade later if you need more."
  action={{ label: 'Upgrade', onPress: () => router.push('/upgrade') }}
  onInfo={() => openSheet('seats')}
/>;

When to use

  • Choosing a small number of seats, licences, tickets or guests, up to about eight.
  • When seeing what is left matters, such as a plan limit or a nearly full table.

When not to use

  • Large counts: eight chairs is the most that reads at a glance. Use a stepper or a number field.
  • Picking specific seats on a map: this counts seats, it does not place them.

Notes

  • Adding past max or removing below min shakes the stepper and plays a warning haptic instead of changing the value.
  • The badge counts max - value and turns red with "Full" when none are left.
  • The armchair is the Tabler Icons armchair (MIT licence, via iconstack.io).

Props

SeatPickerProps

PropTypeDefaultDescription
valuerequirednumber—
onChangerequired(value: number) => void—
maxnumber5Seats that can be taken. Each one is drawn. Defaults to 5.
minnumber1Defaults to 1.
titlestring'Seats'Defaults to "Seats".
captionstring—A line above the action, e.g. "Add seats now and upgrade later if you need more."
action{ label: string; onPress: () => void }—A full-width button at the bottom, e.g. Upgrade.
onInfo() => void—Shows an info button next to the title.
hapticsbooleantrueTicks on each change and a buzz at the limits. Defaults to true.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Seat pops and the number roll run once per change on the UI thread; at rest nothing animates. All seats share one Skia canvas.
Measured

Pixel 9 emulator, API 35, release build · interaction median 1.59× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 162 MB app memory. Frame times are mostly the emulator GPU swap: framestats show about 6 ms of app work per frame (input, animation and drawing) and ~17 ms waiting for the swap.

Real-device measurement pending.

Accessibility

Reduced motion
Seats fill and empty without popping, the number changes in place and the stepper does not shake.
Screen readers
The count is an adjustable control ("2 seats"); the buttons are named Add a seat and Remove a seat; the badge reads "3 seats left" and is announced as it changes.
Touch target
Stepper buttons and the action are 52 pt tall; the info button is 44 pt.

Source files

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