Package org.patternfly.component.skiptocontent


package org.patternfly.component.skiptocontent
Provides the PatternFly skip to content component.

A skip to content component allows screen reader and keyboard users to bypass navigation rather than tabbing through it. It is typically added as the first element inside a Page component and links to the main content area.

Usage

import static org.patternfly.component.page.Page.page;
import static org.patternfly.component.skiptocontent.SkipToContent.skipToContent;

page().addSkipToContent(skipToContent("main-content-id"));
With custom text:
import static org.patternfly.component.skiptocontent.SkipToContent.skipToContent;

SkipToContent stc = skipToContent("main-content-id", "Jump to main content");
See Also:
  • Classes
    Class
    Description
    A skip to content component allows screen reader and keyboard users to bypass navigation rather than tabbing through it.