Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.67 KB

File metadata and controls

57 lines (34 loc) · 1.67 KB
section Extensions
subsection Component groups
id Page header
source react
propComponents
PageHeader
sourceLink https://github.com/patternfly/react-component-groups/blob/main/packages/module/patternfly-docs/content/extensions/component-groups/examples/PageHeader/PageHeader.md

import PageHeader from "@patternfly/react-component-groups/dist/dynamic/PageHeader" import { EllipsisVIcon } from '@patternfly/react-icons'; import pageHeaderIcon from '../../assets/icons/page-header-icon.svg' import { Fragment, FunctionComponent, MouseEvent, Ref, useState } from 'react';

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.

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.

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.