Two segments that decrease and increase a number in steps, as the iOS 26 stepper does.
import { Stepper } from "@plexui/react-native"
| iOS 26 | Android |
|---|
| Native component | Stepper (UIStepper) | None: the Plex stepper (Material has no stepper) |
| Look | A 93 × 32 capsule of two segments with their own light fill, a minus and a plus | The same capsule in Material's container gray, with its pressed state layer |
| Prop | Type | Default | Description |
|---|
value | number | — | Controlled value |
defaultValue | number | min | Initial value (uncontrolled) |
onChange | (value: number) => void | — | Called with the next value after a step |
min | number | 0 | Lowest value |
max | number | 100 | Highest value |
step | number | 1 | Amount each step adds or removes |
wrap | boolean | false | A step past max continues from min, and one below min from max |
autoRepeat | boolean | true | Holding a segment keeps stepping: after 400ms, every 100ms |
disabled | boolean | false | Prevent interaction |
pill | boolean | true | Fully rounded ends; without it the ends take --stepper-radius |
showValue | boolean | false | Shows the value between the minus and the plus on one fill, as a cart's quantity: round segments, no separator |
decrementLabel | string | "Decrease" | Accessible name of the minus segment (the web) |
incrementLabel | string | "Increase" | Accessible name of the plus segment (the web) |
onRemove | () => void | — | Called when the minus is pressed at min; with it the minus there is a trash can that removes the item (not with wrap) |
removeLabel | string | "Remove" | Accessible name of the minus when it removes, and of the screen reader's Remove action |
aria-label | string | — | Name of the value, when no visible label names it |
aria-labelledby | string | — | The nativeID of the visible label of the value (Android and the web) |
testID | string | — | Test id |
style | StyleProp<ViewStyle> | — | Style of the capsule |