Skip to main content
Components

Panel

Use the Panel component to display important information in within confirmation and interruption pages.

Read the Design System guidance for panel

Import

import * as Panel from 'govuk-react/panel';

Examples

Default

Code
<Panel.Composite title="Application complete" />

Panel with header and html body

Code
<Panel.Composite title="Application complete">
  {(
    <>
      Your reference number
      <br />
      <strong>HDJ2123F</strong>
    </>
  )}
</Panel.Composite>

API reference

Panel.Root

Use the Panel component to display important information in within confirmation and interruption pages.

PropType
variant"confirmation" | "interruption"

Panel.Actions

No props of its own. Other props are passed to the element it renders.

Panel.Body

No props of its own. Other props are passed to the element it renders.

Panel.Composite

Use the Panel component to display important information in within confirmation and interruption pages.

PropType
variant"confirmation" | "interruption"
headingLevel

Heading level, from 1 to 6. Default is 1.

1 | 2 | 3 | 4 | 5 | 6
titleRequiredReactNode
actions

Can be used when creating an interruption panel which will add a button or link.

ReactNode

Panel.Title

PropType
headingLevel

Heading level, from 1 to 6. Default is 1.

1 | 2 | 3 | 4 | 5 | 6