lenards/elm-ui-patternfly/4.0.0

NOTE: the latest version is 4.0.2

PF6.Masthead

PF6 Masthead component

A standard top header bar used for branding, navigation, and toolbar actions.

See: https://www.patternfly.org/components/masthead

Definition

type Masthead msg

Opaque Masthead type

Constructor

Construct a Masthead

masthead
    |> withBrand (Brand.brand { src = "/logo.svg", alt = "App" } |> Brand.toMarkup)
    |> withToolbar toolbarEl
    |> toMarkup

Modifiers

withBrand : Element msg -> Masthead msg -> Masthead msg

Add a brand/logo element to the masthead

withContent : Element msg -> Masthead msg -> Masthead msg

Add main content to the masthead (between brand and toolbar)

withToolbar : Element msg -> Masthead msg -> Masthead msg

Add a toolbar element to the right side of the masthead

Add horizontal inset padding

Make the masthead sticky (fixed to top of viewport)

Rendering

toMarkup : Theme -> Masthead msg -> Element msg

Render the Masthead as an Element msg