Number input preview
A numeric field with increment and decrement controls.
pro · Forms · primitive
When to use
- Use it when a product interface needs a numeric field with increment and decrement controls.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than number input.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/number-stepperImport components/ui/tidal.css, components/ui/number-stepper.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/number-stepper.css";
import{TidalNumberStepper}from"./components/ui/number-stepper";
export default()=><div className="tidal-scope"><TidalNumberStepper label={"Demo"} onValueChange={() => {}} value={1}/></div>;API and props
TidalNumberDigits.text (required)stringRequired text value accepted by this exported component.
TidalNumberStepper.label (required)stringRequired label value accepted by this exported component.
TidalNumberStepper.onValueChange (required)(value: number | null) => voidCallback invoked when the value change interaction is proposed.
TidalNumberStepper.value (required)number | nullRequired value value accepted by this exported component.
TidalNumberStepper.decreaseLabelstring | undefinedOptional decrease label value accepted by this exported component.
TidalNumberStepper.descriptionstring | undefinedOptional description value accepted by this exported component.
TidalNumberStepper.errorstring | undefinedOptional error value accepted by this exported component.
TidalNumberStepper.formatValue((value: number) => string) | undefinedOptional format value value accepted by this exported component.
TidalNumberStepper.increaseLabelstring | undefinedOptional increase label value accepted by this exported component.
TidalNumberStepper.maxnumber | undefinedOptional max value accepted by this exported component.
TidalNumberStepper.minnumber | undefinedOptional min value accepted by this exported component.
TidalNumberStepper.rootClassNamestring | undefinedOptional root class name value accepted by this exported component.
TidalNumberStepper.stepnumber | undefinedOptional step value accepted by this exported component.
TidalNumberStepper.unitstring | undefinedOptional unit value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- The host application owns data, validation, persistence, navigation, and service side effects described by this API.