Back to library

Skip link

Let keyboard users bypass repeated navigation and move to the main content.

Skip to main content

Repeated navigation

Main content

The page content starts here.

Recommended API

Property or elementTypeExample initial valueDescription
hrefHash reference#skip-demo-contentPoint to the main content boundary.
tabindexInteger-1 on the destinationAllow the destination to receive focus after navigating.

States

StateTriggerResult
focusedTab to the skip link.The link becomes visible.
activatedPress Enter on the skip link.Focus moves past repeated navigation to the content.

CSS variables

VariableTypeDefaultDescription
--q-textcolor #28302aMain text and foreground color.
--q-mutedcolor #70776fColor for secondary text.
--q-font-sizelength 13pxBase size for the component text.
--q-accentcolor #344e41Accent for active controls, indicators and focus.
--q-on-accentcolor #ffffffForeground on the accent background.
--q-gaplength calc(var(--q-space) * 2)Space between items, based on the spacing unit.
--q-control-pxlength calc(var(--q-space) * 4)Horizontal padding for controls.
--q-control-pylength calc(var(--q-space) * 2.5)Vertical padding for controls.
--q-spacelength 4pxBase unit for gaps and padding.