Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 821 Bytes

File metadata and controls

35 lines (24 loc) · 821 Bytes

Panel

GDS Panel component

Example

<govuk-panel heading-level="2">
    <govuk-panel-title>Application complete</govuk-panel-title>
    <govuk-panel-body>
        Your reference number<br><strong>HDJ2123F</strong>
    </govuk-panel-body>
</govuk-panel>

Panel

API

<govuk-panel>

Attribute Type Description
heading-level int The heading level. Must be between 1 and 6 (inclusive). The default is 1.

<govuk-panel-title>

Required
The content is the HTML to use within the panel title.
Must be inside a <govuk-panel> element.

<govuk-panel-body>

The content is the HTML to use within the panel content.
Must be inside a <govuk-panel> element.