Vibe UI
Initializing Vibe UI System...

Input OTP

A native, highly configurable multi-slot password/PIN code entry field with state focus management.

Input OTP

A native, highly configurable multi-slot password/PIN code entry field with state focus management.

Preview

Installation

pnpm dlx vibe-ui-kit@latest add input-otp

Examples

Explore layout variations including code length, character masking, disabled states, and splits.

4-Digit PIN
Split Separator
Masked Password Mode
Disabled State
9
9
9
9
Large custom sizes

Themes

Explore design aesthetics side-by-side.

Default
1
2
3
4
Glassmorphic
5
6
7
8
Retro Brutalist
9
0
1
2
Neon Glow
3
4
5
6
Cyberpunk
7
8
9
0

Props

PropTypeDefaultDescription
lengthnumber6The count of digits/slots to render inside the field.
variant'default' | 'glass' | 'retro' | 'glow' | 'cyberpunk''default'The visual aesthetic theme to apply to the input slots.
disabledbooleanfalseDisables typing interactions on all slots.
type'text' | 'password' | 'tel''text'Enables text obscuring for secret password entries.

Contributors

JS
Jenish Sabhadiya

Theme Customizer

8px
@theme {
  --radius: 0.5rem;
  --glass-blur: 8px;
}
Changes apply instantly to this documentation workspace.
Input Otp | Vibe UI