The page header component displays a page header section with a title, subtitle and other optional content.
Examples
Basic page header
In order to display a basic page header, pass the title and subtitle.
My Title
This is a subtitle for your page header
Page header with breadcrumbs
You can display breadcrumbs above the title using the breadcrumbs property.
Page header with icon
Use the icon property to display your custom page icon separated with a divider.
My Title
This is a subtitle for your page header
Page header with label and link
To add specific element captions for user clarity and convenience, you can use the label property together with label or your custom component. The linkProps can be used to define a link displayed under the subtitle.
Page header with actions menu
In case you want to display actions in your header, you can use the actionsMenu property.
Props
PageHeader
| Name | Type | Default | Description |
|---|---|---|---|
| actionMenu | React.ReactNode | Menu that appears to the far right of the title | |
| breadcrumbs | React.ReactNode | null | Breadcrumbs component |
| children | React.ReactNode | null | Child nodes |
| headingClassname | string | subtitle ? 'pf-v6-u-mb-sm' : '' | Classname for the h1 element |
| icon | React.ReactNode | Optional icon for page header (appears to the left of the page header's title with a divider) | |
| label | React.ReactNode | Optional label for page header (appears to the right of the page header's title) | |
| linkProps | PageHeaderLinkProps | Optional link below subtitle | |
| ouiaId | string | number | 'PageHeader' | Custom OUIA ID |
| subtitle | React.ReactNode | Subtitle for page header | |
| title | React.ReactNode | Title for page header |
