RSVP Form
BlockInstallation
pnpm add @corew500/feature-eventsUsage
import { RSVPForm } from "@corew500/feature-events"
<RSVPForm>Content</RSVPForm>API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| event* | EventRow | — | Event data |
| registration* | EventRegistrationRow | — | Registration data |
| onConfirm* | () => Promise<{ success: boolean; error?: string; }> | — | Callback when user confirms attendance |
| onDecline* | () => Promise<{ success: boolean; error?: string; }> | — | Callback when user declines |
| onSuccess | (status: "confirmed" | "declined") => void | — | Callback after successful RSVP |
| labels | { title?: string; confirmButton?: string; declineButton?: string; confirmedMessage?: string; declinedMessage?: string; } | {} | Custom labels |
| className | string | — | Additional class name |