lenards/elm-ui-patternfly/3.0.0

NOTE: the latest version is 4.0.2

PF6.Brand

PF6 Brand component

A logo/brand image with alt text, typically used in the masthead.

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

Definition

type Brand msg

Opaque Brand type

Constructor

{ src : String
, alt : String
}
-> Brand msg

Construct a Brand with image source and alt text

brand { src = "/logo.svg", alt = "My App" }

Modifiers

withWidth : Int -> Brand msg -> Brand msg

Set an explicit width in pixels

withHeight : Int -> Brand msg -> Brand msg

Set an explicit height in pixels

Make the brand image responsive (scales to fit container)

Rendering

toMarkup : Brand msg -> Element msg

Render the Brand as an Element msg