0.7.1 • Published 3 years ago
@slice-and-dice/govuk-react-skip-link v0.7.1
SkipLink
Import
import SkipLink from '@govuk-react/skip-link';
Usage
Use the skip link component to help keyboard-only users skip to the main content on a page.
Simple
<SkipLink href="#main-content">Skip to main content</SkipLink>
References
- https://design-system.service.gov.uk/components/skip-link/
- https://github.com/alphagov/govuk-frontend/tree/master/src/components/skip-link
Properties
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children | 'Skip to main content' | node | ||
href | '#content' | string |
0.7.1
3 years ago