The Header component provides the main service branding and primary navigation at the top of every page. It can include the service name, menu items, search, and account information depending on the needs of the application.

The header helps users understand where they are, how to navigate the service.

{{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "default", id: "67fd3098d7900" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "minimal", id: "685aa820139a9" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "account", id: "685aa82013b4d" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "service-name", id: "685abb95c0b14" }) }} {{ aspExample({ code: "", nunjucks: "", json: "", title: "", example: "search", id: "685abb95c0b59" }) }}

When to use this component

Use the Header at the top of every page in your service.

It should consistently be the first element on the page and must always include:

Depending on your service’s requirements, the Header may also include:

All services should use the header component to ensure a consistent user experience.

Example of where we have used this component

This component is used on:

This list is not exhaustive.

Status of development

The below criteria all need to be met for a component to be considered as fully developed for use within the ASP Digital Design System.


{{ aspTable({
head: [
{ text: 'Development criteria'},
{ text: 'Status'}
],
rows: [
{
cells: [
{ text: 'WCAG 2.2 compliant'},
{ html: '<span class="asp-status">Not started</span>'}
]
},
{
cells: [
{ text: 'WCAG 2.1 compliant'},
{ html: '<span class="asp-status asp-status–green">Completed</span>'}
]
},
{
cells: [
{ text: 'HTML / Nunjucks version'},
{ html: '<span class="asp-status asp-status–green">Completed</span>'}
]
},
{
cells: [
{ text: 'Figma version'},
{ html: '<span class="asp-status">Not started</span>'}
]
},
{
cells: [
{ text: 'M365 versions'},
{ html: '<span class="asp-status ">Not started</span>'}
]
},
{
cells: [
{ text: 'Documentation'},
{ html: '<span class="asp-status asp-status–yellow">In progress</span>'}
]
}
]
}) }}