A label component for closable (or dismissable) text
Opaque Label
element that can produce msg
messages
An opaque Variant
custom type with 2 variants
Outline
, Fill
label : String -> Label msg
Constructs a label from the text
withFill : Label msg -> Label msg
Configures appearance to have a Fill
withOutline : Label msg -> Label msg
Configures appearance to have an Outline
withIcon : Element msg -> Label msg -> Label msg
Configures the label to include an icon defined by the Element msg
passed
withHyperlink : String -> Label msg -> Label msg
Configures appearance to have a Hyperlink
withCloseMsg : msg -> Label msg -> Label msg
Configures what msg
is produced "on close"
The event "on close" is produce when the "close" x is clicked.
toMarkup : Label msg -> Element msg
Given the custom type representation, renders as an Element msg
.