Input Spinner

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

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/input-spinner

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 CSSLucide

Props

PropTypeDescription
valuenumberControlled numeric value
defaultValuenumberInitial value when uncontrolled
onValueChange(value: number) => voidCalled after typing or using either control
minnumberLowest allowed value
maxnumberHighest allowed value
stepnumberAmount added or removed with each step
disabledbooleanDisables the input and both controls
classNamestringStyles for the outer control

More Input Components

React Number Input preview

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

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.