ResendConfirmationForm
A form block for resending account confirmation emails to users who haven't verified their email address.
Loading...
Installation
pnpm add @corew500/uiUsage
import { ResendConfirmationForm } from '@corew500/ui/blocks/resend-confirmation-form'
<ResendConfirmationForm
onFormSubmit={(data) => handleResend(data)}
title="Resend Confirmation Email"
description="Enter your email address and we'll resend your account verification email."
/>API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| onFormSubmit | (data: ResendConfirmationFormData) => void | — | Called when the form is submitted |
| loading | enum | false | Whether the form is in a loading state |
| success | enum | false | When true, shows success state instead of form |
| title | string | Resend confirmation email | — |
| description | string | Enter your email address to receive a new confirmation link. | — |
| successTitle | string | Email sent! | — |
| successDescription | string | We've sent a confirmation link to your email address. | — |
| successSubDescription | string | Check your inbox and click the link to confirm your account. | — |
| successAction | enum | — | — |
| labels | { email?: string; } | {} | — |
| placeholders | { email?: string; } | {} | — |
| buttonLabels | { submit?: string; loading?: string; backToLogin?: string; } | {} | — |
| errors | { email?: string; general?: string; } | {} | — |
| backToLoginHref | string | # | — |