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'
Slots
NameDescription
(default)The content of the skip link.
Attributes
PropertyTypeDefaultDescription
hrefstring'#'The URL of the skip link.
sizeCommonSize'sm'The size of the skip link. Default is sm. Can be sm or lg.
noUnderLinebooleanWhether the skip link should have an underline.
placementPlacementThe placement of the skip link. Default is left. Can be left or center.
noUnderlinebooleanfalse
Events

No custom events available.

CSS Parts

No CSS parts available.