Block 215 of 297
Provider Directory
Providers grouped by specialty with jump links, credentials, clinic, languages and a new-patient badge.
- Puck key
- ProviderDirectoryBlock
- Export
- providerDirectoryBlock
- React component
- <ProviderDirectory />
- Path
- components/puck/provider-directory-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 provider directory grouped by specialty, with a sticky left column holding the heading, intro and jump links, and the provider list on the right. Each row shows a photo or initials, name with credentials, clinic, languages spoken, a new-patient status badge and a profile link. On phones the jump links wrap as pills above the list.
- A community health center's "Find a provider" page
- A clinic page listing the care team at one site
- A behavioral health or dental team roster
Writing the content
- Type Specialty identically for providers who belong together; groups appear in the order each specialty first shows up. Jump links appear only with two or more groups.
- Set New patients to Accepting, Limited or Not accepting, and review it often, since patients act on it.
- Use only real, approved headshots in Photo URL. Leave Photo alt text blank when the photo just shows the named person; without a photo, initials appear.
Accessibility
- Specialties and provider names form a two-level heading outline below the Heading level setting, and each specialty is a section labeled by its heading (WCAG 1.3.1).
- New-patient status is written in the badge with a different icon for each state, so it doesn't rely on color (WCAG 1.4.1).
- "View profile" links add the provider's name for screen readers, the jump navigation is labeled, and links are at least 44px tall.
Customizing the code
- The accepting object holds each status's label, icon and badge classes; edit labels there, such as "Accepting Medicaid patients".
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Headingtext
- Heading levelselect
- Introtextarea
- Providersarray
- Footnotetextarea