Skip link

Skip link component is a web component that displays a link to the main content of the page. It is used to skip the navigation and go directly to the main content.

Design system docs

Examples Default skip link

Click on the live code block and hit tab to see the skip link in action.

<dap-ds-skip-link>
Skip to main content
</dap-ds-skip-link>
Importing
import { DapDSSkipLink } from 'dap-design-system/dist/dds'
Importing React
import { DapDSSkipLinkReact } from 'dap-design-system/dist/react'
Attributes
PropertyTypeDefaultDescription
placement'left', 'center'The placement of the skip link.
hrefstring'#'The href of the skip link
size'sm', 'lg''sm'The size of the skip link
noUnderlinebooleanfalseWhether the skip link should have an underline
Slots
NameDescription
(default)The content of the skip link.
Events

No custom events available.

CSS Parts
Part NameDescription
baseThe main skip link container.