Skip to main content
When you need a headcount for an event, such as a team dinner, an RSVP block lets members answer going, maybe or can’t go. Only the member who added it sees the organizer details and controls.
src/app.ts

Props, state and actions

Props are { title, startsAt?, location?, capacity? } (capacity a positive integer). State is { going, maybe, declined, closed }. Answers are a viewer input named rsvp with the values going, maybe and declined. The organizer section (the declined count) and the Close RSVPs button both use audience="creator", so only the member who added the block sees them. With a capacity, a progress bar labelled spots (“Spots taken”) shows how full the event is, and Reintersect writes its text, such as “12 of 24”.

Labels

question, going, maybe, declined, spots, full, organizer, close, confirmTitle, confirmBody, closed, summary.