Page header

Usage

An h1 title on the left, and the last div as a button group on the right. On narrow screens the buttons wrap to a new line.

Title only

With a breadcrumb above the title

A direct-child nav.breadcrumb gets its own full-width row.

With a back button

For a page one level below a list. A direct-child .btn sits before the title. Give it an aria-label that says where it goes back to.

Badges inside the title, and a line under it

Put .badge elements right inside the h1. Use an hgroup when a p goes under the title.

Title block in a div

The older pattern these docs pages use: the first div holds the breadcrumb, title and description. The last div holds the buttons.

Attributes

Attribute / element Values Description
.page-header header Wrapping flex row, centered vertically
> nav nav.breadcrumb Breadcrumb on the top row, full width
> .btn Back button before the title. Does not grow or shrink (use data-size="icon" and aria-label)
> h1 Page title. Fills the space; a .badge inside follows the title
> hgroup An h1 title with a gray p under it
> div:first-child Older title block: breadcrumb, h1 and p stacked
> div:last-child Action buttons on the right (unless it is the first child or the title block after a nav)
p Gray secondary text