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*EventRowEvent data
registration*EventRegistrationRowRegistration 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") => voidCallback after successful RSVP
labels{ title?: string; confirmButton?: string; declineButton?: string; confirmedMessage?: string; declinedMessage?: string; }{}Custom labels
classNamestringAdditional class name