Tailwind UI Pattern Registry for humans and agents

modal dialog otp verification code authentication 2fa modal otp verification code 2fa authentication pin digit OTP verification modal two-factor code input dialog

Modal OTP

Fetch pattern JSON: curl https://webspire.de/patterns/modal/otp.json

Details

Family
modal
Tier
enhanced
Kind
component
Extends
modal/base
Responsive Dark Mode Tailwind Only SSR Safe Copy & Paste Requires JS
Stable Published
modaldialogotpverificationcodeauthentication2fa

Slots

Name Required Description
title Yes Verification heading text.
body Yes Instruction subtitle about the sent code.
inputs Yes Six single-digit input boxes.
action Yes Verify button and resend code link.

OTP verification modal with title, subtitle, six individual digit input boxes (each 12x12 with centered text), a full-width verify button, and a resend code link. Uses inputmode="numeric" for mobile keyboard optimization.