Number Field

Numeric stepper with increment and decrement buttons. Enforces min/max boundaries and configurable step increments.

import{ NumberField } from "@pepulux/ui"

Default — controlled value

Value: 1

Custom step

Increment and decrement in steps larger than 1.

Increases in $10 steps

Minimum 5 seats

Min / Max boundaries

Decrement and increment buttons disable automatically at the boundary.

Buttons disable at boundaries 1 and 5

Error state

At least 1 ticket is required

Disabled

Contact sales to change

With hint text

Added before and after each session

Props

PropTypeDefaultDescription
valuenumberControlled value
onChange(value: number) => voidCalled when value changes via buttons or direct input
minnumberMinimum allowed value — disables decrement at boundary
maxnumberMaximum allowed value — disables increment at boundary
stepnumber1Amount added or subtracted per click
labelstringField label above the control
hintstringHelper text below (shown when no error)
errorbooleanfalseRed border error state
errorTextstringError message (shown instead of hint when error=true)
disabledbooleanfalseDisables all controls
classNamestringAdditional CSS classes on the wrapper