Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 566 Bytes

skip-link.md

File metadata and controls

25 lines (16 loc) · 566 Bytes

Skip link

GDS Skip link component

Example - default href

<govuk-skip-link>Skip to main content</govuk-skip-link>

Example - custom href

<govuk-skip-link href="#main">Skip to main content</govuk-skip-link>

API

<govuk-skip-link>

The content is the HTML to use within the generated link.

Attribute Type Description
href string The 'href' attribute for the link. The default is '#content'. Cannot be null or empty.