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
SkipLink 7 props
The id of the element to move to, e.g. the page's
main.The label: "Skip to content".
Ref to the link (the element that takes focus).
The outermost element's id, the fixed wrapper's.
Classes for the outermost element, the fixed wrapper, so an app can move it (below a sticky bar:
top-[72px]). Wins over the defaults viacn().Classes for each part.
Inline styles for the outermost element, the fixed wrapper.
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.
Placement & styling
className,styleanddata-*go on the fixed wrapper, the outermost element, so an app can move it, for example below a sticky bar withtop-[72px].classNames.rootis the same element.- The link takes
classNames.link. Classes that styled the link throughclassNamemove 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.