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.
Importing
Importing React
Attributes
Property Type Default Description placement
'left'
, 'center'
The placement of the skip link. href
string
'#'
The href of the skip link size
'sm'
, 'lg'
'sm'
The size of the skip link noUnderline
boolean
false
Whether the skip link should have an underline
Slots
Name Description (default)
The content of the skip link.
Events
No custom events available.
CSS Parts
Part Name Description base
The main skip link container. text
The text container of the skip link. high-contrast
The high contrast outline container.
CSS Custom Properties
Property Name Description --dds-skip-link-border-color
Border color for the high contrast outline (default: var(--dds-border-neutral-transparent-interactive, #fff500)) --dds-skip-link-border-width
Border width for the high contrast outline (default: var(--dds-border-width-large)) --dds-skip-link-border-width-active
Border width for the active state (default: var(--dds-border-width-xlarge)) --dds-skip-link-border-radius
Border radius of the skip link (default: var(--dds-radius-small)) --dds-skip-link-padding-sm
Padding for small size variant (default: var(--dds-spacing-200)) --dds-skip-link-padding-lg
Padding for large size variant (default: var(--dds-spacing-400)) --dds-skip-link-text-underline-offset
Underline offset for the text (default: 3px) --dds-skip-link-z-index
Z-index of the skip link (default: var(--dds-z-index-100))