Components

Skip link

Use the skip link component to help keyboard-only users skip to the main content on a page.

To view the skip link component tab to this example, or click inside this example and press tab.

Skip to main content
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
forstring-REQUIRED. ID of the element to skip to

When to use this component

All GOV.UK pages must include a skip link in the header.

How it works

Some people use the tab key on their keyboard to navigate through the links and form elements on a web page.

Including the skip link component gives users the option to bypass the top-level navigation links and jump to the main content on a page.

The skip link component is visually hidden until a keyboard press activates it.

Stories

Standard

A standard Skip link.

To view the skip link component tab to this example, or click inside this example and press tab.

Skip to main content

Custom text

A Skip link with custom text.

To view the skip link component tab to this example, or click inside this example and press tab.

Skip ahead