Kinetik UI

Step Slider

.md

A slider with a few fixed stops marked as dots, a snapping knob and a spinning action button.

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

Installation

Kinetik CLI
npx kinetik-ui add step-slider

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/step-slider.json

Install manually

  1. Install dependencies
    npx expo install react-native-gesture-handler react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/step-slider.tsx
    View source files

Usage

import { StepSlider } from '@/components/kinetik/step-slider';

<StepSlider
  label="Creativity"
  steps={4}
  labels={['Subtle', 'Balanced', 'Bold', 'Wild']}
  value={level}
  onValueChange={setLevel}
  action={{ icon: <RefreshIcon />, label: 'Generate again', onPress: regenerate }}
/>;

When to use

  • Three to six levels that read as a scale: strength, quality, creativity.
  • Next to an action that uses the level, such as generate or apply.

When not to use

  • Unrelated choices: use Segment Bar.
  • Fine values: use Value Slider.

Notes

  • Pass labels so screen readers read the level by name.
  • The action spins a full turn on each press; set spin: false for actions that are not refresh-like.

Props

StepSliderProps

PropTypeDefaultDescription
valuerequirednumber—The selected step, from 0.
onValueChangerequired(value: number) => void—
labelrequiredstring—Accessible name.
stepsnumber4Number of stops. Defaults to 4.
labelsreadonly string[]—Names for the stops, read by screen readers, e.g. ["Low", "Medium", "High", "Max"].
actionStepSliderAction—A round button at the end, e.g. regenerate.
disabledbooleanfalse
hapticsbooleantrueA tick on every stop. Defaults to true.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
The knob and dots are driven by one shared value on the UI thread; React re-renders only when the stop changes.
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 knob snaps without overshoot and the action icon does not spin.
Screen readers
Adjustable role reading the stop name (or "Step 2 of 4"); increment and decrement move one stop.
Touch target
The track is 44 pt tall; the action button is 44 pt.

Source files

components/kinetik/step-slider.tsx is in the Code tab of the preview above.