GitHub

Resend Confirmation Form

Block
Form to resend email confirmation

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { ResendConfirmationForm } from "@corew500/ui/blocks/resend-confirmation-form"

<ResendConfirmationForm>Content</ResendConfirmationForm>

API Reference

Props

PropTypeDefaultDescription
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" /> } ```
localestring——
redirectTostring——
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.