primait/pyxis-components/7.0.0

NOTE: the latest version is 9.0.3

Prima.Pyxis.Form.Label

Configuration

type Label msg

Represent the opaque Label configuration.

Configuration Methods

label : String -> Label msg

Create a label with string content.

labelWithHtml : List (Html msg) -> Label msg

Create a label with html content.

Rendering

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

Options

withAttribute : 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.

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.

Event Options

withOnClick : msg -> Label msg -> Label msg

Sets an onClick to the Label config.