Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { Stepper } from "@/components/ui/stepper";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| value / defaultValue Controlled or uncontrolled value. | number | min or 0 |
| onValueChange Called on every step. | (value) => void | — |
| min / max Limits; the matching button dims and a press past it bumps the number. | number | 0 / ∞ |
| step Increment (decimals are respected, e.g. 0.5). | number | 1 |
| variant Round outlined buttons, one tinted capsule, an accent cart button that collapses to + at 0, or small tinted buttons. Old names still work: default → outline, pill / segmented → filled, vertical → filled + vertical. | "outline" | "filled" | "cart" | "compact" | "outline" |
| size 32 / 36 / 44pt buttons (touch area always ≥ 44pt); the number and icons scale too. compact is always 28pt. | "sm" | "md" | "lg" | "md" |
| orientation Stack + / number / − (outline, filled, compact). | "horizontal" | "vertical" | "horizontal" |
| format Display format, e.g. currency; every changed character rolls. | (value) => string | — |
| suffix Muted unit after the number: "kg", or (n) => n === 1 ? "night" : "nights". | string | (value) => string | — |
| addLabel cart: text beside the + while collapsed, e.g. "Add". | string | — |
| repeat Hold to keep stepping, speeding up. | boolean | true |
| label Title on the left; the control moves to the right edge. | string | — |
| description Muted line under the label. | string | — |
| disabled Dims and blocks the control. | boolean | false |
| accent Icons (filled, compact), press tint (outline), fill (cart). | string | theme accent |
| iconColor Overrides the − / + icon colour. | string | — |
| accessibilityLabel Read by screen readers; the control is adjustable (swipe up / down). | string | label |
| style The control, or the whole row when label / description is set. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
| buttonStyle Applied to each − / + button. | StyleProp<ViewStyle> | — |
| valueStyle Applied to the number (fontSize, colour, weight). | StyleProp<TextStyle> | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Pick the Variants chip above the preview, or set variant=… — "outline" | "filled" | "cart" | "compact".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "outline" | "filled" | "cart" | "compact" · default "outline"Round outlined buttons, one tinted capsule, an accent cart button that collapses to + at 0, or small tinted buttons. Old names still work: default → outline, pill / segmented → filled, vertical → filled + vertical.
- size
- "sm" | "md" | "lg" · default "md"32 / 36 / 44pt buttons (touch area always ≥ 44pt); the number and icons scale too. compact is always 28pt.
- accent
- string · default theme accentIcons (filled, compact), press tint (outline), fill (cart).
- iconColor
- stringOverrides the − / + icon colour.
- style
- StyleProp<ViewStyle>The control, or the whole row when label / description is set.
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
- buttonStyle
- StyleProp<ViewStyle>Applied to each − / + button.
- valueStyle
- StyleProp<TextStyle>Applied to the number (fontSize, colour, weight).
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Touch
- Hold a button to keep stepping, speeding up as you hold. The cart variant opens from a single + into − 1 +, with a trash can at 1.
- Motion
- Each changed character slides out as the new one slides in; buttons spring on press and a press past min or max gives a small bump.
- Screen readers
- One adjustable element with min, max and the formatted value (suffix included), plus 'Increase' and 'Decrease' actions.
Source
FAQ
How do I make a quantity stepper in React Native?
npx @expokit/cli@latest add stepper in your Expo or React Native project and it copies a ready-made quantity stepper into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Stepper work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Stepper to my Expo app?
npx @expokit/cli@latest add stepper in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.Is Stepper free?
Can I change how Stepper looks?
useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.