Component

NumberInput

Numeric input with increment/decrement buttons.

tsx
import { NumberInput } from 'wss3-forge'

Usage

Use for numeric values

Set min/max for constraints

Step controls increment amount

Keyboard arrows work


Examples

Basic NumberInput

tsx
1const [quantity, setQuantity] = useState(1)
2
3<NumberInput
4 value={quantity}
5 onChange={setQuantity}
6 label="Quantity"
7/>

With Min/Max

tsx
1<NumberInput
2 value={value}
3 onChange={setValue}
4 min={0}
5 max={100}
6 step={5}
7 label="Volume"
8/>

Previous

Input

Next

OTPInput

Last updated: December 2025

Cookies

We use cookies to improve your experience and save your preferences.