Block 213 of 297
Find a Clinic
Clinic cards with services, address, phone, hours, walk-in status, languages, accessibility notes and directions.
- Puck key
- FindAClinicBlock
- Export
- findAClinicBlock
- React component
- <FindAClinic />
- Path
- components/puck/find-a-clinic-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
Clinic locations as cards, each with a walk-in or appointment badge, service tags, address, tap-to-call phone, hours, languages spoken, an accessibility note and a full-width directions button. A help line at the bottom points undecided patients to a phone number. Cards run three across on desktop, two on tablets and one on phones.
- A community health center's "Locations" page
- A county health department page listing public clinics
- A service page showing which sites offer dental or pharmacy
Writing the content
- Separate Services and Languages spoken with commas. Services become tags; languages print as one line.
- Choose Walk-ins for every clinic, then use Walk-in note for the cutoff, like "Check in by 5 p.m. for same-day visits".
- Type Address one line per row exactly as it should print. Phone is shown as typed and the call link is built from its digits.
- Be concrete in Accessibility notes: parking, step-free entrances, elevators, hearing loops. Clinics takes up to 12 cards.
Accessibility
- Walk-in status appears as words in the badge with a different icon for each state, not as color alone (WCAG 1.4.1).
- Address, phone, hours and languages sit in a description list with hidden labels behind the icons, and the address uses an address element (WCAG 1.3.1).
- "Get directions" adds the clinic name for screen readers, and the phone, directions and help links are at least 44px tall with visible focus rings.
Customizing the code
- Change md:grid-cols-2 lg:grid-cols-3 on the clinic list for a different column count.
- The walk-in badge uses indigo-50 and indigo-800 for welcome and neutral tones for appointment-only; edit those classes in the badge className.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Clinicsarray
- Help line texttext
- Help line phonetext