Resend Confirmation Form
BlockBasic Usage
Loading...
Installation
pnpm add @corew500/uiUsage
import { ResendConfirmationForm } from "@corew500/ui/blocks/resend-confirmation-form"
<ResendConfirmationForm>Content</ResendConfirmationForm>API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| action* | ResendConfirmationAction | — | Server action for resending confirmation email. Import from '@corew500/feature-auth/server' and pass as prop. @example ```tsx import { ResendConfirmationForm } from '@corew500/feature-auth' import { resendConfirmation } from '@corew500/feature-auth/server' export default function Page() { return <ResendConfirmationForm action={resendConfirmation} loginHref="/login" /> } ``` |
| locale | string | — | — |
| redirectTo | string | — | — |
| onSuccess | (data: ResendConfirmationSuccessData) => void | Promise<void> | — | Called after confirmation email is sent successfully. Can be async - the form will await completion. |
| onAuthError | (error: AuthFormError) => void | — | Called when the request fails. Receives the error code (if available) and message. |
| onSubmitStart | () => void | — | Called immediately before the form submits. Useful for analytics, global loading states, or last-minute checks. |