Example#
Usage#
Every page starts with a skip link: the first thing a keyboard reaches, "Skip to content", which jumps to Main. It stays out of sight until it takes focus, then prints as a white key at the top start, above the header.
- Place it first in the body, before the navbar.
- Target. It points at
#mk-mainby default, the idMaincarries.
Anatomy#
- Skip keyA white plate key, shown only while focused.
.mk-skip-link
Volume#
Reading layer: identical at every volume.
Quiet
Studio
Press
Rave
Content#
- The label is "Skip to content". It never changes from page to page.
Do and don't#
Don't
A skip link placed after the navbar, so keyboard users tab through every item before reaching it.
Accessibility#
- Put it first in
<body>; it targets#mk-main(Main). - It is hidden until focused, then sits above the header as a white key.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | none | Default "Skip to content". |
Tokens#
System tokens (8)
Changelog#
Arrived in 0.1.0.
Sectionwith its plate andArtslot,Plate,VolumeScope,PageHero,SectionHead,Eyebrow,Card,LineCard,InfoPanel,Stack,Cluster,Grid,Container,Main,Ruleand theFittedLineclient fitter;Navbarwith theNavDisclosuremega panels,Footer,FooterMap,BuildStamp,SkipLink,ActionDockandVisitorControls; theTableparts,ComparisonTablewith the one-tier switcher,SpecStrip,Numeral,Stat,StatGroup,StatusChip,BadgeandScoreDial;ProsewithmdxComponents,Quote,CodeBlockwithCopyButton,Figure,ScreenshotFrameandPhoneFrame; and the brand: the three evolved 2 × 2 options inmarkGeometry(a Overprint by default, b Paper seam, c Key block) with the pixel-snappedpxmode and the one-ink seam variant,logoGeometrywith the 1x clear-space frame,Mark,Wordmark,Logo,MaxosMarkandLineBadge. Read the whole entry