Skip to content

Block 218 of 297

Health Alert

A public health advisory with level, what's happening, steps to take, who's at higher risk and a 911 line.

Puck key
HealthAlertBlock
Export
healthAlertBlock
React component
<HealthAlert />
Path
components/puck/health-alert-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 public health advisory panel with a level badge (Information, Advisory or Warning), title, issuer and update time, a plain-language summary, numbered steps to take beside a list of who is at higher risk, and a footer with an emergency line, health line and more-info link. The left border and tint follow the level. The two lists stack on phones.

  • A heat, smoke or air quality advisory on a health department home page
  • A boil-water or outbreak notice page
  • An informational update during flu or RSV season
Writing the content
  • Update both Updated (as shown) and Updated (machine-readable), like 2026-10-08T14:00, each time the alert changes.
  • Enter What you should do one step per line, following official guidance, and Who's at higher risk one group per line. Either list hides when blank.
  • The Emergency line always shows and its whole text is a link that dials 911, so use it only for 911 wording.
Accessibility
  • The level is written out with a hidden "Alert level:" prefix and its own icon, so color is never the only cue (WCAG 1.4.1).
  • The section is labeled by the alert title, steps are an ordered list, and subheadings sit one level below the Heading level setting (WCAG 1.3.1).
  • The update time uses a time element when a machine-readable value is given. There is no live region, so the alert is not announced on change.
Customizing the code
  • The levels object holds each level's label, border, tint, badge and bullet classes, using indigo, amber and red; add a level there and in the radio options.

Editor fields

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

  • Alert levelradio
  • Titletext
  • Heading levelselect
  • Issued bytext
  • Updated (as shown)text
  • Updated (machine-readable)text
  • What's happeningtextarea
  • Actions headingtext
  • What you should dotextarea
  • Risk headingtext
  • Who's at higher risktextarea
  • Emergency linetext
  • More info link texttext
  • More info linktext
  • Phone labeltext
  • Phonetext