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.

Props

Also accepts the root element's HTML attributes (id, data-*, event handlers).

Spec status

Not part of Material Design 3: a Windmorph Pro component, built on M3's colour roles, type scale, shapes and motion. Its variants and configurations each link to a live example.

  • Skip to content, before the navigation

    Built

    Use case · Page

  • Placed below a sticky top bar (className on its wrapper)

    Built

    Configuration · Below bar

Placement & styling

  • className, style and data-* go on the fixed wrapper, the outermost element, so an app can move it, for example below a sticky bar with top-[72px]. classNames.root is the same element.
  • The link takes classNames.link. Classes that styled the link through className move there.
  • It has no values of its own: it follows the core filled Button's tokens, and its wrapper carries data-tokens="wm-skip-link". In forced colours it keeps only the Button's border.