GitHub

ResendConfirmationForm

A form block for resending account confirmation emails to users who haven't verified their email address.

Loading...

Installation

pnpm add @corew500/ui

Usage

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

PropTypeDefaultDescription
onFormSubmit(data: ResendConfirmationFormData) => voidCalled when the form is submitted
loadingenumfalseWhether the form is in a loading state
successenumfalseWhen true, shows success state instead of form
titlestringResend confirmation email
descriptionstringEnter your email address to receive a new confirmation link.
successTitlestringEmail sent!
successDescriptionstringWe've sent a confirmation link to your email address.
successSubDescriptionstringCheck your inbox and click the link to confirm your account.
successActionenum
labels{ email?: string; }{}
placeholders{ email?: string; }{}
buttonLabels{ submit?: string; loading?: string; backToLogin?: string; }{}
errors{ email?: string; general?: string; }{}
backToLoginHrefstring#