Skip to content

PIN input

Pro

One box per character for verification codes, PINs and vouchers, with paste and one-time-code autofill. Not an M3 component (@windmorph/react-pro).

import { PinInput } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Playground

We sent it to your email.

Code

import { PinInput } from '@windmorph/react-pro'; <PinInput  label="Code"  supportingText="We sent it to your email."  errorMessage="That code didn't work."/>

Examples

A verification code that submits itself

Outlined or filled, in three sizes

Groups, letters and custom characters

Full width

A masked PIN

Corners and character sets

Invalid, required, read-only and disabled

Density, from 56px to 44px