Skip to main content
SkipLink
ImplementedSkip-to-main-content link. Hidden off-screen at top:-40px, slides down on focus. WCAG 2.4.1 Bypass Blocks.
Categorymolecules
Source
patterns/molecules/skiplink.htmlAI HintUse for grouped UI patterns. Combine atoms into functional units.
Skip-to-main-content link (WCAG 2.4.1 Bypass Blocks). Hidden off-screen with a transform slide (-translate-y-40), revealed on keyboard focus. Must be the first focusable element on the page.
SkipLink
molecules
Bypass-block anchor. Hidden via transform — never display:none — so it stays in the accessibility tree and the tab order.
The link sits off-screen until it receives focus — press Tab to reveal it, then Enter to move focus to the target below.
Simulated page header & navigation
Main content — the skip target. Focus lands here when the link is activated, because it carries
Skip to main contenttabIndex={-1}.Props
Preview
SkipLink
Prop
Type
Required
Default
Description
hrefstringOptional
'#main-content'Link target URL.
childrenReact.ReactNodeOptional
'Skip to main content'Visible link label; localize via translated children.
classNamestringOptional
—Additional CSS classes appended to the anchor.
Quick use:
<SkipLink />Accessibility
ARIA rolelink
ARIA
1 rulerender
1 ruleUsage
Import
tsxSnippet
import { SkipLink } from "@epasslive/design-system"Example 1
tsxSnippet
<SkipLink />Example 2
tsxSnippet
<SkipLink variant="default" />Anti-patterns
— Do not hardcode data in molecules
— Avoid complex business logic in molecules