Skip to contentWolf-Rayet

Page header

A page header defines the top of a page.

Install

One package and one stylesheet. The stylesheet carries the tokens every component reads.

pnpm add @wolf-rayet/react
import '@wolf-rayet/react/css/wolf-rayet.css';
import { PageHeader } from '@wolf-rayet/react';

Props

A required prop is marked with an asterisk.

PropTypeDefaultDescription
children *ReactNode—The page title. It is the one thing a header cannot do without.
breadcrumbsReactNode—The trail above the title, for a page inside a hierarchy.
actionsReactNode—The actions belonging to the page. One primary, and few in total.
bottomBarReactNode—A row below the title for filters, tabs or a search field.

Anything else you pass is forwarded to the underlying element, so the standard attributes and event handlers work as they normally would.

Accessibility

What the component does for you, and what it needs from you.

  • The title is the page heading, which is what a screen reader reads first and what heading navigation lands on.
  • Breadcrumbs sit before the title in reading order, matching where they appear.
  • Grouped actions carry a group name, so the set is announced rather than read as loose buttons.