Skip to content
Data Input

PinInput

One-time code entry for email and SMS verification flows.

PinInput

One-time code entry for email and SMS verification flows.

Examples

Default

Demo.tsxtsx
import { PinInput } from '@var-ui/react';

<PinInput label="Verification code" length={4} defaultValue="1234" autoFocus />

Props

Accessibility

Uses a role="group" wrapper with one text input per digit. Each cell has an aria-label for its position, and the first cell sets autocomplete="one-time-code" so mobile browsers can suggest codes from SMS.