Simal UI
Components

Stepper

Stepper renders only the −/+ control.

It holds no value of its own — the caller owns the number and wires subtractButton / addButton.

Import

import { Stepper } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
subtractButtonPressable props for the − half: onPress, and disabled once you hit your lower bound. The stepper enforces no bounds itself.
addButtonPressable props for the + half. Same contract as subtractButton.

Examples

Wired

At Lower Bound

Either side can be disabled independently — here the lower bound is hit.

On this page