lenards/elm-ui-patternfly/4.0.2

PF6.JumpLinks

PF6 JumpLinks component

Jump links allow users to navigate to sections of a page by clicking anchors in a vertical (or horizontal) list. Useful for long-form pages with multiple named sections.

See: https://www.patternfly.org/components/jump-links

Definition

Constructor

Link constructors

Layout modifiers

Vertical layout (default) — links stacked top to bottom

Center the links horizontally (applies mainly to horizontal layout)

Sticky positioning — the nav stays visible while the page scrolls

Label

withLabel : String -> JumpLinks msg -> JumpLinks msg

Add a heading label above the links

Rendering

toMarkup : Theme -> JumpLinks msg -> Element msg

Render the JumpLinks as an Element msg

Links use Element.link to produce <a href> anchors. For in-page navigation to work, the target sections must have matching id attributes set via Element.htmlAttribute (Html.Attributes.id "section-name").