PIN Input

Material Design 3 secure PIN entry component with masked input

PIN Input

PIN Input is designed for secure numeric code entry like passwords, ATM PINs, or access codes. It features masked input to hide the entered digits.

Basic Usage

Basic PIN Input

Lengths

4 Digits

4-Digit PIN

6 Digits

6-Digit PIN

Variants

Outlined (Default)

Outlined PIN Input

Filled

Filled PIN Input

Dot Display

Shows dots instead of the actual input field value:

Dot Display PIN

Sizes

Small

Small PIN Input

Large

Large PIN Input

Masked Display

Masked PIN Input

States

Error State

Error State

Incorrect PIN. Please try again.

Success State

Success State

PIN accepted

Disabled

Disabled PIN Input

Complete Form Example

PIN Form Example

Please enter your 4-digit security PIN

3 attempts remaining

API Reference

Class Names

ClassDescription
.pin-inputBase container (required)
.pin-input-fieldIndividual PIN field (required)
.pin-input-44-digit layout
.pin-input-66-digit layout
.pin-input-outlinedOutlined variant
.pin-input-filledFilled variant
.pin-input-dotsDot display variant
.pin-input-dotIndividual dot element
.pin-input-dot-filledFilled dot state
.pin-input-smSmall size
.pin-input-lgLarge size
.pin-input-maskedMasked input display
.pin-input-errorError state
.pin-input-successSuccess state
.pin-input-disabledDisabled state
.pin-input-helperHelper text
.pin-input-helper-errorError helper text
.pin-input-helper-successSuccess helper text