Components
Panel
Use the panel component to show the sucessful end status of a form or user journey.
Contents
HTML
<div class="tna-panel">
<h1 class="tna-heading-xl tna-panel__heading">
Application received
</h1>
<div class="tna-panel__content">
<p>Your application has been received and is being processed.</p>
<p>Your reference number is <strong>123456</strong>.</p>
</div>
</div>
Nunjucks
Nunjucks options
Name | Type | Description |
---|---|---|
title | string |
Required. The main title of the panel. |
headingLevel | number |
The heading level which represents an element from Default value: |
headingSize | string |
The physical size of the panel title ( Default value: |
body | string |
The HTML for the main body of the panel. Not displayed if |
text | string |
The text for the panel which will be inserted into a |
classes | string |
Classes to add to the panel. |
attributes | object |
HTML attributes (for example data attributes) to add to the panel. |
{% from "nationalarchives/components/panel/macro.njk" import tnaPanel %}
{{ tnaPanel({
title: "Application received",
body: "<p>Your application has been received and is being processed.</p><p>Your reference number is <strong>123456</strong>.</p>",
headingLevel: 1
}) }}
Component status
- Phase
- To be reviewed
- Tested without CSS
- Yes
- Passed DAC audit
- Not yet audied
- Documentation complete
- No