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.
| Prop | Type |
|---|---|
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.
| Prop | Type |
|---|---|
variant | "confirmation" | "interruption" |
headingLevelHeading level, from | 1 | 2 | 3 | 4 | 5 | 6 |
titleRequired | ReactNode |
actionsCan be used when creating an interruption panel which will add a button or link. | ReactNode |
Panel.Title
| Prop | Type |
|---|---|
headingLevelHeading level, from | 1 | 2 | 3 | 4 | 5 | 6 |