GitHub

RSVP Form

Block
Event RSVP form with attendance confirmation

Installation

pnpm add @corew500/feature-events

Usage

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

<RSVPForm>Content</RSVPForm>

API Reference

Props

PropTypeDefaultDescription
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
classNamestring—Additional class name