Skip to content

Page

A standardised page layout including waymarkers and page-level actions.

Overview

The Page component and its various sub-components provide a standardised page layout including waymarkers such as a back link and breadcrumbs, page-level actions, and a clear h1 which is essential for accessibility.

Anatomy

  1. Back button
  2. Breadcrumbs
  3. Page title
  4. Page-level action
  5. Page content

Basic usage

Edit live code

Variants

Max Width

By default the page has a max width of 1600px, but this can be disabled by passing maxWidth="none" to the Page component.

Only use maxWidth="none" when your page needs the full width of the page (i.e. more than 1600px width), this may be because you have wide tables, multiple columns, or your page is a dashboard.

Note that due to the below 1600px max width of the Nebula docs site content it's not really possible to preview this functionality here.

Page actions

Use a page-level action when there is a clear action that is relevant for the whole page, for instance on the "Transactions" page this might be "Add transaction". If your page-level action is a primary button, try to avoid using any other primary buttons on the page.

Use a primary button when the action is likely to be the reason the user has visited the page (like adding a transaction) and a secondary button when it is more optional (like changing billing preferences).

Edit live code

Without page actions

Edit live code

Waymarkers

The page component uses breadcrumbs and the back button as "waymarkers" to give users context on where they are.

Breadcrumbs can show how pages are nested or which domain the current page belongs to.

The back button gives users a quick way to go to the previous page. This may be helpful if the user likely needs to go back to a "hub" page. Do not use it for multi-step forms (except for the first step), where behaviour may be unpredictable.

Edit live code
Edit live code

Without waymarkers

Edit live code

Properties

Page

NameValuesDefault

maxWidth

standardnone

standard

...

JSX.IntrinsicElements["div"]

NameValuesDefault

...

JSX.IntrinsicElements["div"]

Page.Waymarkers

NameValuesDefault

...

JSX.IntrinsicElements["div"]

NameValuesDefault

...

JSX.IntrinsicElements["a"]

NameValuesDefault

breadcrumbs (required)

String[]

...

JSX.IntrinsicElements["ol"]

Page.HeaderSection

NameValuesDefault

...

JSX.IntrinsicElements["div"]

Page.Title

NameValuesDefault

...

JSX.IntrinsicElements["h1"]

Page.Actions

NameValuesDefault

...

JSX.IntrinsicElements["div"]

Page.Content

NameValuesDefault

...

JSX.IntrinsicElements["div"]