PatternFly

Skip to content

A skip to content component allows screen reader and keyboard users to bypass navigation rather than tabbing through it.

Examples

Basic

Basic screenshot

Props

SkipToContent

*required
NameTypeDefaultDescription
hrefrequiredstringThe skip to content link.
childrenReact.ReactNodenullContent to display within the skip to content component, typically a string.
classNamestring''Additional styles to apply to the skip to content component.

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v5-c-skip-to-content--pf-v5-c-skip-to-content--Top
1rem
.pf-v5-c-skip-to-content--pf-v5-c-skip-to-content--ZIndex
600
.pf-v5-c-skip-to-content--pf-v5-c-skip-to-content--focus--Left
1rem

View source on GitHub