GitHub

Two Factor Form

Block
Two-factor authentication verification form

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { TwoFactorForm } from "@corew500/ui/blocks/two-factor-form"

<TwoFactorForm>Content</TwoFactorForm>

API Reference

Props

PropTypeDefaultDescription
onFormSubmit(data: TwoFactorFormData) => void—Called when the form is submitted
loadingenumfalseWhether the form is in a loading state
glowenumfalseEnable glow effects
titlestringTwo-factor authentication—
descriptionstringEnter the 6-digit code from your authenticator app.—
labels{ code?: string; backupCode?: string; }{}—
placeholders{ backupCode?: string; }{}—
buttonLabels{ submit?: string; loading?: string; useBackupCode?: string; useAuthenticator?: string; }{}—
errors{ code?: string; general?: string; }{}—
features{ backupCodeOption?: boolean; }{}—