NumberInput
Numeric input with increment/decrement stepper buttons, min/max bounds, and step control.
Examples
Basic
Number input with increment and decrement buttons.
With Step
Increments in steps of 5.
Min / Max Bounds
Constrained between 0 and 10.
Disabled
Number input in a disabled state.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { NumberInput } from "@rokle/components";import { NumberInput } from "@rokle/components";
export function Example() {
return <NumberInput />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | - | Current numeric value. |
| onValueChange | (value: number) => void | - | Called when value changes. |
| min | number | - | Minimum allowed value. |
| max | number | - | Maximum allowed value. |
| step | number | 1 | Increment/decrement step size. |