Page Header
The top of a page, composed from parts: breadcrumbs, the title with its description and actions, and an optional sub-page nav.
Overview
- `PageHeaderBreadcrumbs`: an
itemstrail whose last entry is the current page. - `PageHeaderContent`: heading on one side, actions on the other, stacked on narrow screens.
- `PageHeaderHeading`:
PageHeaderTitle(the<h1>, with anisLoadingskeleton) andPageHeaderDescription. Anything that belongs beside the title, like a status select, goes inside it too. - `PageHeaderActions`: buttons that stretch on mobile.
- `PageHeaderNav`: an area's sub-pages, usually a
TabNav.
Wrap the app in react-aria's RouterProvider so breadcrumb and tab links route client-side.
Installation
CLI
Manual
- 1
Register the @fma-ds namespace in components.json (once)
- 2
Add the item
Files land in
components/fma-ds/page-header/page-header.tsx; npm and registry dependencies are installed along with them.
Dependencies
- npm
- cn@^0.5.0