Represent the opaque Label
configuration.
label : String -> Label msg
Create a label with string content.
labelWithHtml : List (Html msg) -> Label msg
Create a label with html content.
render : Label msg -> Html msg
Renders a Label config
.
import Prima.Pyxis.Form.Label as Label
view : List (Html msg)
view =
"My Label"
|> Label.label
|> Label.withId "myForId"
|> Label.render
withAttribute : Html.Attribute msg -> Label msg -> Label msg
Sets an attribute
to the Label config
.
withClass : String -> Label msg -> Label msg
Sets a class to the Label config
.
withConditionallyFor : Maybe String -> Label msg -> Label msg
Sets a for to the Label config
if the maybeFor argument has a value,
otherwise it leaves the Label config
unchanged.
withFor : String -> Label msg -> Label msg
Sets a for to the Label config
.
withOverridingClass : String -> Label msg -> Label msg
Sets a class which will override the others to the Label config
.
withSubtitle : String -> Label msg -> Label msg
Sets a subLabel
to the Label config
.
withOnClick : msg -> Label msg -> Label msg
Sets an onClick
to the Label config
.