Page Header

Page Headers are used to render a page title and actions placed at the top of page.

In its simplest form, a page header consists of a page title. See further guidance below in the Page Title & Breadcrumbs usage section .

Page Title

The right-aligned action slot allows for one or more page-level actions, like Save or Export. See further guidance below in the Action Slot usage section .

Page Title
Secondary Action Primary Action

An overflow should be used in certain situations when adding additional elements that will take up too much space. See further guidance below in the Action Slot usage section .

Page Title Cut Copy Paste Primary Action

The navigation slot can be used to open and close the side navigation container as shown here. See further guidance below in the Navigation Slot usage section .

Page Title Primary Action

The navigation slot can be used to provide a back action when in a focused view. See further guidance below in the Navigation Slot usage section .

Page Title Primary Action

Breadcrumbs help orient a user whenever they navigate into focused views or subpages within a group. See further guidance below in the Page Title & Breadcrumbs usage section .

Page Title Sub Page 1 Sub Page 2 Primary Action

The tabs-region slot can be used to provide Tabs in an Page or Focused View. See Tab Group for more information on using Tabs,

Page Title Primary Action Tab One Tab Two Tab Three

The tabs-region slot can be used to provide Tabs in an Page or Focused View. See Tab Group for more information on using Tabs,

Page Title Primary Action Tab One Tab Two Tab Three
import '@ods/components/web.page-header';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)The page headers' content.
page-header-actionsThe page headers' action region.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
expandContentEnabled
booleanfalse
backEnabled
booleanfalse
sticky
booleantrue

Events

React EventDescriptionEvent Detail
ods-layout-drawer-showEmitted when the side navigation expand icon is clicked.--
ods-layout-drawer-hideEmitted when the side navigation collapse icon is clicked.--
ods-layout-navigate-backEmitted when the back button is clicked.--

Parts

NameDescription
baseThe component's base wrapper.
page-header-tab-regionThe component's tab region.

Page Headers are crucial to helping users understand where they are within an application at any given time, with or without a side navigation structure present. As such they should be implemented accurately and in accordance with our guidelines in all instances. Page Headers are fixed by default but can be made to scroll if absolutely needed to accommodate more page content.

The Navigation Slot is used to open and close the Side Nav container or provide a back action when in a Focused View. If your application doesn’t have a Side Nav you can skip the Side nav container pattern and use a Page Title only variation.

Do

  • Use the included nav drawer trigger action icon in the Page Header
  • Use the back arrow to navigate back up through a stack pages

Dont

  • Implement a different way to open/close side nav
  • Mix up the back and close actions from one page to the next

Page Titles can be used on top-level pages, but should switch to Breadcrumbs on sub pages to help keep user oriented.

Breadcrumbs help orient a user whenever they navigate into focused views or subpages within a Group. They should reflect the Side Nav hierarchy and terminology. See the breadcrumbs component for more info.

Do

  • Use Breadcrumbs according to guidelines
  • Mimic hierarchy from Side Nav
  • Use Page Titles on parent pages only

Dont

  • Implement breadcrumbs that don’t follow guidelines
  • Switch terms between side nav and breadcrumbs/page titles
  • Use Page Titles on child pages

The right-aligned Action Slot allows for one or more page-level actions, like Save or Export. You can use up to 2 full-size buttons, 4 Icon Buttons, and leverage an overflow menu for any additional actions as needed. There is also space for a short message.

Do

  • Use the Action Slot to host page-level actions like Save, End Procedure, Export, Add Group etc
  • Use an overflow for more than 2 button actions
  • Use an overflow menu for more than 4 Icon actions
  • Use a single Primary action plus an overflow for additional actions
  • Use a Secondary or Default style button for the page level action if the page action is not needed in order to advance the user. i.e., Export on an Insights page
  • Use the message space for page-level info like Last Updated timestamps, or procedure duration timers
  • Keep the message short, non-actionable info

Dont

  • Use action slot for actions that only relate to one part of the page content
  • Use an Overflow on it’s own - include at least one button
  • Use the message area for temporal alerts or notifications
  • Use the message area for Error messaging

Search