Skip to content
nexubDesign System
v11.9.0

Patterns · Pages

Verify code

VerifyCodePageVerifyCodeScreen

One-time code for sign-in or a second factor: boxes that take the OS code suggestion and submit when full, a resend countdown, the code lifetime and other ways to verify.

Web

Live, at a real viewport width. Switch to Phone to see the responsive layout.

Usage

TSX
import { VerifyCodePage } from '@nexub/patterns';

<VerifyCodePage
  destination="+65 •••• 4821"
  onComplete={(code) => verify(code)}
  onResend={resend}
  expiresAt={expiresAt}
  onChangeDestination={changeNumber}
  methods={[{ id: 'app', label: 'Use an authenticator app' }, { id: 'recovery', label: 'Use a recovery code' }]}
  onMethodChange={setMethod}
  loading={checking}
  error={error}
/>