SkipNav

Skip link that jumps keyboard users past the navigation to the main content

Category: navigation · WCAG 2.2-AA · accessibility, skip-link, keyboard, navigation

Props

PropTypeDefaultDescription
targetIdstringcascade-skip-targetSkipNavLink: id of the SkipNavTarget to jump to
labels{ label?: string }SkipNavLink: overrides the built-in i18n label per instance
idstringcascade-skip-targetSkipNavTarget: anchor id — must match the link targetId

Design tokens

When to use

When not to use

How to build an accessible SkipNav in React →

Examples

Default pair

SkipNavLink must be the first focusable element on the page

<><SkipNavLink /><nav>…</nav><SkipNavTarget /><main>…</main></>

Custom target

<><SkipNavLink targetId="main-content" /><SkipNavTarget id="main-content" /></>

Related components

← Back to docs