GitHub

Registration Form

Block
Event registration form with attendee details

Installation

pnpm add @corew500/feature-events

Usage

import { RegistrationForm } from "@corew500/feature-events"

<RegistrationForm>Content</RegistrationForm>

API Reference

Props

PropTypeDefaultDescription
event*enumEvent data
onSubmit*(data: Record<string, unknown>) => Promise<{ success: boolean; error?: string; }>Callback when registration is submitted
onSuccess() => voidCallback when registration succeeds
showEventDetailsenumtrueShow event details header
labels{ name?: string; email?: string; notes?: string; submit?: string; submitting?: string; }{}Custom labels
classNamestringAdditional class name
fields{ name?: string; type?: "text" | "email" | "tel" | ...Dynamic registration fields (overrides default name/email/notes)
localestringenLocale for dynamic field labels (default: 'en')