Skip to content

Skip link

Pro

"Skip to content" for keyboard users: off screen until focused, then it moves focus past the navigation (WCAG 2.4.1). Not an M3 component (@windmorph/react-pro).

import { SkipLink } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Purpose

"Skip to content" lets keyboard and screen-reader users jump past the top bar and navigation that repeat on every page (WCAG 2.4.1, Bypass Blocks). It stays off screen until it takes focus, then shows at the top; pressing it moves focus into the content. It is not an M3 component, so it comes from @windmorph/react-pro, and it is the core's filled Button as a link: 40px tall with a 48px touch target, the state layer, the ripple and the M3 focus indicator.

Behaviour

  • A fixed wrapper at the top start of the window slides it in on the fast spatial spring as it takes focus; under reduced motion it fades in instead.
  • Pressing it moves focus to target (giving it tabindex="-1" if it can't take focus), and scrolls to it on purpose, so the next Tab continues from there.
  • Several in a row (content, search) show one at a time, in the same place. Without JavaScript it is a plain #target link.

When not to use

For navigation people see, use a Link or the navigation components.

See also

  • Link: Navigation written as text: in a sentence, as a name, or on its own line. Underlined in text, routed like every library link, with new-tab handling. Not an M3 component (@windmorph/react-pro).
  • Top app bar: A header with the screen title and actions, in three sizes, with scroll behaviour.