Skip to main content
Styles

Page

Lays out the body of a GOV.UK page: skip link, header and footer landmarks, width container and main wrapper. For custom layouts, compose SkipLink, WidthContainer and MainWrapper directly.

- https://design-system.service.gov.uk/styles/page-template/ - https://design-system.service.gov.uk/styles/layout/#page-wrappers

Read the Design System guidance for page

Import

import { Page } from 'govuk-react/page';

Examples

Default

Code
<Page beforeChildren={<BackLink href="#" />}>
  <Heading size="xl">Page title</Heading>
</Page>

With footer

Code
<Page footer={<Footer.Composite />}>
  <Heading size="xl">Page title</Heading>
</Page>

API reference

Page

Lays out the body of a GOV.UK page: skip link, header and footer landmarks, width container and main wrapper. For custom layouts, compose SkipLink, WidthContainer and MainWrapper directly.

- https://design-system.service.gov.uk/styles/page-template/ - https://design-system.service.gov.uk/styles/layout/#page-wrappers

PropType
children

Page contents, rendered inside the main wrapper.

React.ReactNode
id

Id of the main wrapper, which the skip link points to.

string
header

Page header, such as Header.Composite or ServiceNavigation.

React.ReactNode
footer

Page footer, such as Footer.Composite.

React.ReactNode
beforeChildren

Content outside the main wrapper but inside the width container, such as a back link, breadcrumbs or phase banner.

React.ReactNode
skipLinkText

Text for the skip link.

React.ReactNode