SkipLink

A visually hidden skip-to-content link that becomes visible on focus. Essential for keyboard accessibility.

Import

import { SkipLink } from '@adjanour/react-components'
import '@adjanour/react-components/skip-link.css'

Usage

Place it as the first focusable element on the page.

<SkipLink href="#main-content">Skip to content</SkipLink>

Props

PropTypeDefaultDescription
hrefstring'#main-content'Target anchor ID
childrenReactNode'Skip to content'Link label

Behavior

Theming

VariableDefaultDescription
--aw-skip-bg#0f172aBackground color
--aw-skip-text#fffText color
--aw-skip-radius6pxBorder radius