Skip to content

Block 55 of 297

Choose Path

Two or three large clickable cards for ways to help, such as give, volunteer and advocate, each with one action.

Puck key
ChoosePathBlock
Export
choosePathBlock
React component
<ChoosePath />
Path
components/puck/choose-path-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

Two or three large cards, each offering one way to get involved, such as give, volunteer or advocate. Each card has an icon, a time or cost cue, a title, a short description and one action, and the whole card is clickable. One card can be highlighted in solid indigo. Cards stack on phones.

  • A Get Involved page that sorts visitors into giving, volunteering or advocacy
  • The bottom of a home page offering two or three next steps
  • A membership page comparing joining, renewing and gifting a membership
Writing the content
  • Add two or three Paths; the block holds no more. Keep each Title to one or two words, since it prints large.
  • Use Commitment to state what each path asks, such as "5 minutes" or "From $10". It helps people choose quickly.
  • Action link is where the whole card goes, so each card should lead to one clear page.
  • Highlight the path most people start with, or choose None when the options are equal.
Accessibility
  • The link covers the whole card, but its accessible name is only the Action text, so write text that stands alone, like "Find a shift".
  • Path titles sit one level below the section heading, and the commitment pill has hidden "Commitment:" text.
  • Focus outlines the whole card. The highlight is visual only, so state any recommendation in the copy.
Customizing the code
  • Icons come from the iconPaths map and iconOptions list; add an outline icon path to both to offer more choices.
  • The highlighted card is bg-indigo-700; cards have a lg:min-h-104 minimum height on desktop.

Editor fields

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

  • Eyebrowtext
  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Pathsarray
  • Highlighted cardselect