lenards/elm-ui-patternfly/4.0.1

NOTE: the latest version is 4.0.2

PF6.BackToTop

PF6 BackToTop component

A floating button that scrolls the user back to the top of the page. Positioned at the bottom-right corner of the viewport.

See: https://www.patternfly.org/components/back-to-top

Definition

type BackToTop msg

Opaque BackToTop type

Constructor

backToTop : msg -> BackToTop msg

Construct a BackToTop button

backToTop ScrollToTop

Modifiers

Always show the back-to-top button (default is hidden until scrolled)

Set the bottom offset in pixels from the viewport edge

Rendering

toMarkup : Theme -> BackToTop msg -> Element msg

Render the BackToTop as an Element msg