Stepper

Two segments that decrease and increase a number in steps, as the iOS 26 stepper does.

import { Stepper } from "@plexui/react-native"

Examples

Overview

Range, step and wrap

In a cart

Platforms

iOS 26Android
Native componentStepper (UIStepper)None: the Plex stepper (Material has no stepper)
LookA 93 × 32 capsule of two segments with their own light fill, a minus and a plusThe same capsule in Material's container gray, with its pressed state layer

API

PropTypeDefaultDescription
valuenumber—Controlled value
defaultValuenumberminInitial value (uncontrolled)
onChange(value: number) => void—Called with the next value after a step
minnumber0Lowest value
maxnumber100Highest value
stepnumber1Amount each step adds or removes
wrapbooleanfalseA step past max continues from min, and one below min from max
autoRepeatbooleantrueHolding a segment keeps stepping: after 400ms, every 100ms
disabledbooleanfalsePrevent interaction
pillbooleantrueFully rounded ends; without it the ends take --stepper-radius
showValuebooleanfalseShows the value between the minus and the plus on one fill, as a cart's quantity: round segments, no separator
decrementLabelstring"Decrease"Accessible name of the minus segment (the web)
incrementLabelstring"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)
removeLabelstring"Remove"Accessible name of the minus when it removes, and of the screen reader's Remove action
aria-labelstring—Name of the value, when no visible label names it
aria-labelledbystring—The nativeID of the visible label of the value (Android and the web)
testIDstring—Test id
styleStyleProp<ViewStyle>—Style of the capsule