Examples
Expandable (responsive)
Expandable only where the breakpoints allow it —
pf-m-non-expandable-on-md pf-m-expandable-on-lg pf-m-non-expandable-on-xl.
Documentation
Jump links props
Parameters accepted by
{#include components/navigation/jump-links ... /}. Model mode: pass
jumpLinks=<JumpLinks> built in Java instead — the Java tab on each example shows
the builder.
| Name | Type | Description |
|---|---|---|
* id
|
String | DOM id. |
vertical
|
boolean |
Adds pf-m-vertical — stacks items vertically.
|
center
|
boolean |
Adds pf-m-center — center-aligns horizontal items.
|
ariaLabel
|
String |
aria-label on the <nav>. Default "Jump to section".
|
slot content
|
Qute block | <li class="pf-v6-c-jump-links__item"> items containing the anchor links. |
Usage
Match anchors to section ids. Each href="#xxx" needs a matching
id="xxx" on a heading or scrollable target.
Current section. Set pf-m-current on the active item and
aria-current="page" on the link. Updating that on scroll is consumer concern — wire an
IntersectionObserver in JS.