Number Field
Compose a numeric input from primitives: NumberField + NumberFieldContent + Increment/Decrement buttons + NumberFieldInput. Use when you need a different layout than the bundled InputNumber.
Default
Inline +/- with the input in the middle.
Usage
Import the parts you need from the component's folder.
ts
import {
NumberField,
NumberFieldContent,
NumberFieldDecrement,
NumberFieldIncrement,
NumberFieldInput,
} from "@/components/ui/number-field";With bounds
Constrain the value with min, max, and step.
Disabled
Pass disabled to block the input and step buttons.