Package org.patternfly.component.skiptocontent
package org.patternfly.component.skiptocontent
Provides the PatternFly skip to content component.
With custom text:
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"));
import static org.patternfly.component.skiptocontent.SkipToContent.skipToContent;
SkipToContent stc = skipToContent("main-content-id", "Jump to main content");
- See Also:
-
ClassesClassDescriptionA skip to content component allows screen reader and keyboard users to bypass navigation rather than tabbing through it.