On this page:

Number Input

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Clearable

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

States

Preview

index.tsx
Error message

Preview

index.tsx
Error message
$

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx
$

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Floating label

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx
USD

Preview

index.tsx

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Size Medium

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Alternative

Preview

index.tsx

Design Tokens for NumberInput

Note: NumberInput uses the same design tokens as the Input component. See BaseInput documentation for available tokens.


NumberInput API Reference

<NumberInput />

PropTypeDefaultDescription
typestring'number'Input type (always 'number' for NumberInput)
minnumberMinimum value
maxnumberMaximum value
stepControlnumber1Step increment
stepper'auto' | 'chevron' | 'separate''auto'Stepper type
unitstring | string[]Unit or list of units
selectedUnitstringSelected unit
onUnitChange(unit: string) => voidCallback when unit changes
allowInputbooleantrueAllow manual input when using stepper
onValueChangefunction (values, event?)Callback when value changes (number format)
isClearablebooleanfalseShow clear button
floatingLabelReact.ReactNodeFloating label
theme'default' | 'alternative''default'Theme
inputSize'sm' | 'md''sm'Input size
leftIconReact.ReactNodeLeft icon
onClear() => voidCallback when clear
...InputPropsSee InputInherits all props from Input
...NumericFormatPropsSee NumericFormatInherits all props from NumericFormat

Note: NumberInput inherits all props from Input and the native input element. See Input documentation for full details on available props and tokens.