Block 142 of 297
Tribute Gift
Give in honor or memory of someone, with a sample e-card and a short form that hands off to your donation page.
- Puck key
- TributeGiftBlock
- Export
- tributeGiftBlock
- React component
- <TributeGift />
- Path
- components/puck/tribute-gift-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
A two-column section for gifts in honor or in memory of someone. The left side explains the process in numbered steps and shows a sample of the family's e-card; the right holds a short form (tribute type, honoree, who to notify) that passes those details to your donation form. On phones the form follows the explanation.
- A memorial or honor giving page
- A donate page section for holiday or celebration gifts
- A funeral home or obituary referral landing page
Writing the content
- Set Form action URL to your donation form. Choose Link (GET) if it reads prefills from the URL, or Form post (POST). It receives honoree, tribute_type and notify_email.
- The sample card needs both E-card caption and E-card sample name. Use a clearly made-up name; the card shows the memory line.
- How it works takes zero to four short steps. Remove them all to hide the list.
- Fill the Privacy note to say what happens with the notification email address.
Accessibility
- Inputs have visible labels, the honor and memory radios sit in a fieldset with a legend, and the email hint is tied in with aria-describedby (WCAG 1.3.1).
- The honoree field is marked required, so browsers and screen readers flag it before submission.
- Option tiles show a focus outline when their radio has keyboard focus, and tiles and the submit button are at least 48px tall.
Customizing the code
- Inputs, selected tiles and the submit button use Tailwind indigo, set in inputClass and the label classes; swap indigo- to rebrand.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtextarea
- Heading levelselect
- Bodytextarea
- How it worksarray
- E-card honor linetext
- E-card memory linetext
- E-card sample nametext
- E-card messagetextarea
- E-card signaturetext
- E-card captiontext
- Form headingtext
- Honoree field labeltext
- Tribute type labeltext
- Honor optiontext
- Memory optiontext
- Notify field labeltext
- Notify field hinttext
- Button texttext
- Form action URLtext
- Send asradio
- Privacy notetextarea