Components

Service navigation

Service navigation helps users understand that they’re using your service and lets them navigate around your service.

Props
NameTypeDefaultDescription
idstring-'id' attribute to place on the base HTML element
classBlockstring-Block name override in BEM style classes applied to all elements
classModifiersModifiers-BEM style modifiers to apply to the base HTML element
classNamestring-Extra classes to apply to the base HTML element
endReactNode-Elements to be injected at the end of the service header container
itemsAnchor[][]List of links to choose from
maxContentsWidthnumber-Maximum width of the contents in px units (-1 for full width)
menuButtonTextstringMenuThe text of the mobile navigation menu toggle
menuButtonLabelstring-The screen reader label for the mobile navigation menu toggle
navigationLabelstring-The screen reader label for the mobile navigation menu. Defaults to the same value as menuButtonText if not specified.
navigationIdstringnavigationThe ID used to associate the mobile navigation toggle with the navigation menu.
serviceHrefstring-Service link URL
serviceNamestring-Service link text
signOutHrefstring-Sign out link URL
signOutTextstringSign outSign out link text
startReactNode-Elements to be injected at the start of the service header container

Rebrand

After 25th June 2025, you should use the rebranded version of this component, by ensuring that a parent element, such as <html>, has the govuk-template--rebranded class.

When to use this component

Use the Service navigation to help users understand that they’re using your service.

To decide when to use navigation links in your service, see the Help users to navigate a service pattern.

How it works

Together, the GOV.UK header component and Service navigation component ensure users get a consistent experience on GOV.UK.

This also assures users that they’re in the right place to use your service and to understand that GOV.UK functions as one website.

For guidance on how to plan your header and navigation, see the [Help users navigate a service pattern].

Change the blue colour bar under the GOV.UK header to full width

To use the GOV.UK header and Service navigation and make them fit together visually, you’ll need to change the bottom blue border of the GOV.UK header to full width.

Apply a class govuk-header--full-width-border to the GOV.UK header.

Showing your service name only

We recommend that you use the Service navigation component to show your service name, instead of the GOV.UK header, and to start updating existing services.

Showing service name and navigation links

Show navigation links to let users navigate to different parts of your service and find useful links and tools.

See when and how to show navigation links in the [Help users navigate a service pattern].

Showing service name and sign-out link

Unofficial

A sign-out link can be provided and added to the end of the list of navigation links.