React Number Input

Labeled React number input with an optional unit, stacked controls, bounds, and empty values.

Add to your project

1Connect the Uniquel MCP

Connect Uniquel to your coding agent before using the component ID.

Connect MCP

2Copy the component ID

MCP ID
component:input/react-number-input

Works with your AI tools

ClaudeClaude*
CodexCodex*
LovableLovable
Base44Base44
Figma MakeFigma Make
ReplitReplit*
CursorCursor*
v0v0

* Compatible with most projects that use the default React/Next.js framework.

Built With

ReactTailwind CSSSolar Icons

Props

PropTypeDescription
label*stringVisible field label.
valuenumber | nullControlled value.
defaultValuenumber | nullInitial uncontrolled value.
onValueChange(value: number | null) => voidCalled with a finite number or null.
minnumberLowest allowed value.
maxnumberHighest allowed value.
stepnumberKeyboard and button step size.
unitstringOptional unit displayed inside the field.
hintstringSupporting field guidance.
errorstringValidation message and error state.
disabledbooleanDisables the field and controls.

More Input Components

React Search Bar preview

Accessible React search bar with highlighted results, keyboard navigation, and polished loading and empty states.

A six-digit PIN input with paste support and keyboard navigation for verification codes.

1500
0

A vertical range input with configurable value labels, thumb shapes, colors, and height.

A premium search input with a focused state and an icon that becomes a submit action as you type.

A minimalist input spinner for choosing quantities with buttons, typing, or arrow keys.