Skip to content

Block 50 of 297

Event Registration

Event summary card beside an RSVP form with party size, dietary needs and accessibility requests.

Puck key
EventRegistrationBlock
Export
eventRegistrationBlock
React component
<EventRegistration />
Path
components/puck/event-registration-block.tsx
Dependencies
None
License
MIT

About this block

When to use it, how to write for it, and what to change in the code.

What it's for

An RSVP section that pairs a dark event card (photo, name, date, time, location, cost and a capacity note) with a registration form for name, email, optional phone, party size, dietary needs and accessibility requests. The card stays in view beside the form on desktop and stacks above it on phones. It posts with plain HTML to your endpoint.

  • A community dinner, gala or open house with limited seats
  • A free public workshop where you need a headcount
  • A park or library program that asks about access needs ahead of time
Writing the content
  • Put the venue on the first line of Location and the address after; the first line prints bold.
  • Max party size sets the largest group per registration, and the hint under the field updates to match.
  • Remove every Dietary option for events without food to hide that question.
  • The phone hint reads "Only for day-of weather changes" in code; edit it if you'll use numbers otherwise.
Accessibility
  • Inputs have visible labels with optional fields marked, autocomplete for name, email and phone, and hints linked by aria-describedby.
  • The form is named from the Event name, such as "Register for Harvest Supper on the Green".
  • Event facts are a description list with hidden Date, Time, Location and Cost terms beside decorative icons.
Customizing the code
  • Field names are fixed: event_id, first_name, last_name, email, phone, attendees, dietary and accessibility. Rename them in the form markup if your system expects others.
  • The card is bg-neutral-950 with indigo-300 icons; the image crop is aspect-3/2.

Editor fields

What content editors see in the P1 sidebar when they select this block.

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Event nametext
  • Image URLtext
  • Image alt texttext
  • Datetext
  • Timetext
  • Locationtextarea
  • Costtext
  • Capacity notetext
  • Form action URLtext
  • Event IDtext
  • Max party sizenumber
  • Dietary optionsarray
  • Button texttext
  • Confirmation notetextarea