Skip to content

Block 193 of 297

School Finder

Schools grouped by level with grades, principal, address, phone and website, plus level jump links and an address lookup.

Puck key
SchoolFinderBlock
Export
schoolFinderBlock
React component
<SchoolFinder />
Path
components/puck/school-finder-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 district school list grouped into elementary, middle, high and alternative sections, each school on a card with grades, principal, address, phone and website. A tinted card beside the heading links out to your attendance-boundary tool. Cards run three across on desktop, two on tablets and one on phones.

  • The main "Our schools" page of a district site
  • A new-family welcome page that sends parents to the boundary lookup
  • A directory page listing only alternative or magnet programs
Writing the content
  • Pick a Level for every school; groups with no schools are hidden, and the jump links only appear when two or more levels have entries.
  • The block does not search addresses itself. Address lookup link should point to your boundary or locator tool, and a blank Address lookup link text hides the whole lookup card.
  • Keep Grades served short, like "K–5" or "PreK–5", because it sits in a small badge beside the school name.
Accessibility
  • Group and school headings step down from the Heading level setting, keeping the outline consistent (WCAG 1.3.1).
  • Each card's details are a description list with screen-reader-only terms (Principal, Address) behind the decorative icons, and the grades badge is read as "Grades K–5".
  • Phone and website links add the school name for screen readers, so a list of "School website" links stays distinguishable, and all links are at least 44px tall with a visible focus ring.
Customizing the code
  • The four levels and their labels live in the levels array near the top of the file; edit it to rename a level or add one such as "Early childhood".

Editor fields

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

  • Headingtext
  • Heading levelselect
  • Introtextarea
  • Address lookup link texttext
  • Address lookup linktext
  • Address lookup notetextarea
  • Schoolsarray