Skip to main content

Summary box

The ::summary-box directive renders a USWDS summary box — a highlighted region used to surface the most important content on a page. Typically: a short bulleted list of key points above a longer explanation.

Basic usage

Key filing information

  • Responses are due 20 business days after receipt of a FOIA request.
  • Extensions are permitted for unusual circumstances.
  • Fee waivers are available when disclosure is in the public interest.
::summary-box
  #heading
  ### Key filing information

  #body
  - Responses are due **20 business days** after receipt of a FOIA request.
  - Extensions are permitted for unusual circumstances.
  - Fee waivers are available when disclosure is in the public interest.
::

When to use it

Use a summary box for:

  • Executive summaries at the top of a long page — the three-to-five bullets a skim reader needs.
  • Key takeaways before a deep dive.
  • Important disclosures that legally or practically can't be buried in prose.

Use an alert instead when the content is a notice, warning, or time-sensitive message. Summary boxes are evergreen; alerts are situational.

Accessibility

The outer element is <div class="usa-summary-box" role="region">. Screen readers announce it as a landmark region using the inner heading as its accessible name — no aria-labelledby pairing needed, because the heading is a descendant of the region.

This is why the #heading slot matters even more here than on <Alert>: without a heading, the landmark has no name and becomes invisible in a screen reader's region list.

Always include a heading

A summary box without a #heading still renders visually, but it loses its accessible landmark name. If you're reaching for this component, include a heading.

Without a heading

You can omit the #heading slot — the component will skip the heading wrapper. But you lose the landmark semantics (see above), so this is rarely what you want:

A summary box without a heading — still visually distinct, but less useful to assistive tech.

Props reference

PropTypeDefaultNotes
#heading slotmarkdownStrongly recommended.
#body / bodymarkdownSummary content.

Source

Component: packages/astro/src/components/SummaryBox.tsx

Red Glare

An official website of the Open source project

Looking for U.S. government information and services? Visit USA.gov