PIN Input

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

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/pin-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 CSS

Props

PropTypeDescription
valuestringControlled PIN value.
defaultValuestringInitial PIN value.
onValueChange(value: string) => voidCalled when the PIN changes.
lengthnumberNumber of PIN digits. Default: 6.
disabledbooleanDisables every PIN field.
autoFocusbooleanFocuses the first field on mount.
classNamestringClasses merged onto the input group.

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.

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.