Skip to content

Block 92 of 297

Header — Government

Official-website banner with a "Here's how you know" disclosure, seal and agency name, search, quick service links and a full-width nav bar.

Puck key
HeaderCivicBlock
Export
headerCivicBlock
React component
<HeaderCivic />
Path
components/puck/header-civic-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 government header that opens with an "official website" banner and a "Here's how you know" disclosure explaining the domain and HTTPS. Below it are the seal and agency name, quick service links, site search and a full-width colored navigation bar. On phones, search and links move into a menu panel under the banner.

  • City, county or state agency websites
  • Public utilities and transit authorities
  • Special districts such as parks, libraries or school boards
Writing the content
  • Write the Official site line with your full jurisdiction, like "An official website of the City of Riverbend". Leave it blank to hide the banner.
  • Only claim .gov in the Domain fields if your site uses a .gov domain; otherwise rewrite or clear them.
  • Quick links holds up to 3 top tasks such as Pay a bill. Menu links allows up to 8.
  • Leave Seal alt text blank when the Agency name shows beside it. Without a Seal image URL, a generic star emblem is used.
Accessibility
  • The "Here's how you know" explanation is a native details element that opens by keyboard.
  • Search uses role="search", a hidden label from Search label, and an icon button with the hidden text "Search".
  • The current section gets aria-current="page" plus a thick border, not color alone. Nav bar links use a white focus outline inset on the dark bar (WCAG 2.4.7).
Customizing the code
  • The nav bar is bg-indigo-900 with indigo-950 for the current item; swap the indigo- family for your agency color.
  • Replace the sealFallback SVG near the top of the file if you want a different default emblem.

Editor fields

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

  • Official site linetext
  • Disclosure labeltext
  • Domain titletext
  • Domain explanationtextarea
  • Security titletext
  • Security explanationtextarea
  • Seal image URLtext
  • Seal alt texttext
  • Agency nametext
  • Subtitletext
  • Home linktext
  • Search pagetext
  • Search parametertext
  • Search labeltext
  • Quick linksarray
  • Navigation nametext
  • Menu linksarray
  • Current sectiontext
  • Mobile menu labeltext