lenards/elm-ui-patternfly/4.0.2

PF6.Title

PF6 Title component

Provides semantic heading levels (h1–h6) with PF6 typography sizing.

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

Definition

type Title msg

Opaque Title type

Constructor

title : String -> Title msg

Construct a Title — defaults to H1 sizing

Heading level modifiers

withH1 : Title msg -> Title msg

H1 — 2xl size (36px)

withH2 : Title msg -> Title msg

H2 — xl size (28px)

withH3 : Title msg -> Title msg

H3 — lg size (24px)

withH4 : Title msg -> Title msg

H4 — md size (20px)

withH5 : Title msg -> Title msg

H5 — default size (16px), bold

withH6 : Title msg -> Title msg

H6 — sm size (14px), bold

Extra attributes

withExtraAttributes : List (Attribute msg) -> Title msg -> Title msg

Append extra elm-ui attributes

Rendering

toMarkup : Theme -> Title msg -> Element msg

Render the Title as an Element msg