lenards/elm-ui-patternfly/3.0.0

NOTE: the latest version is 4.0.2

PF6.Label

PF6 Label component

Labels are used to highlight an item's status for quick recognition, or to flag content that needs action.

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

Definition

type Label msg

Opaque Label type

type Variant

Fill or outline variant

type Color

Label color theme

Constructor

label : String -> Label msg

Construct a Label with the given text

Variant modifiers

withFill : Label msg -> Label msg

Filled background (default)

withOutline : Label msg -> Label msg

Outlined border, transparent background

withCompact : Label msg -> Label msg

Compact sizing — smaller padding

Color modifiers

Blue color theme

Green color theme

Orange color theme

withRedColor : Label msg -> Label msg

Red color theme

Purple color theme

Cyan color theme

Gold color theme

Content modifiers

withIcon : Element msg -> Label msg -> Label msg

Add a leading icon

withCloseMsg : msg -> Label msg -> Label msg

Add a close/dismiss button that sends msg on click

Rendering

toMarkup : Label msg -> Element msg

Render the Label as an Element msg