Skip to content

MFAInput

stable

Six/eight-digit OTP code entry with auto-advance, paste support, countdown timer, and resend action

TrustInteractive/Storybook ↗
import { MFAInput } from "@nodus/design-system"
Loading demo…

Props

length
Type 6 | 8Default 6

Number of digits

onComplete
Type (code: string) => voidDefault

Called when all digits entered

countdown
Type numberDefault

Seconds before code expires

onResend
Type () => voidDefault

Called on resend click

error
Type stringDefault

Error message

Metadatasemantictypebordermotion
MobileTouch Target

Individual OTP digit inputs must be ≥44px square on mobile. Use numeric keyboard via inputMode='numeric'. Auto-advance on digit entry improves mobile UX.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?