Skip to main content
GOV UI Lightweight UI for government software.

PageHeader

The title, description and primary actions for a page.

When to use it

When not to use it

Examples

Each example is a conformance case: every emitter — React, and each framework adapter — is checked against exactly this markup.

basic

Rendered
HTML
<header class="gov-page-header">
  <div class="gov-page-header__content">
    <h1 class="gov-page-header__title">Employees</h1>
  </div>
</header>
{
  "title": "Employees"
}

with-description

Rendered
HTML
<header class="gov-page-header">
  <div class="gov-page-header__content">
    <h1 class="gov-page-header__title">Employees</h1>
    <p class="gov-page-header__description">Manage your team members and their roles.</p>
  </div>
</header>
{
  "title": "Employees",
  "description": "Manage your team members and their roles."
}

with-actions

Rendered
HTML
<header class="gov-page-header">
  <div class="gov-page-header__content">
    <h1 class="gov-page-header__title">Employees</h1>
    <p class="gov-page-header__description">Manage your team members and their roles.</p>
  </div>
  <div class="gov-page-header__actions">
    <button class="gov-button gov-button--secondary gov-button--md" type="button">Export</button>
    <button class="gov-button gov-button--primary gov-button--md" type="button">Add employee</button>
  </div>
</header>
{
  "title": "Employees",
  "description": "Manage your team members and their roles.",
  "children": [
    {
      "component": "button",
      "props": {
        "variant": "secondary",
        "children": "Export"
      }
    },
    {
      "component": "button",
      "props": {
        "children": "Add employee"
      }
    }
  ]
}

Accessibility

Class names

Class names
Role Class
base.gov-page-header
content.gov-page-header__content
title.gov-page-header__title
description.gov-page-header__description
actions.gov-page-header__actions

View the manifest for this component: packages/manifest/components/page-header.json