nsbno / spor-elm / Spor.LineTag.InfoTag

A component for displaying info tags


type InfoTag

A component for displaying info tags

Config

init : InfoTag

Create an initial configuration for a InfoTag component.

withVariant : Spor.LineTag.Types.Variant -> InfoTag -> InfoTag

Set the variant

withSize : Spor.LineTag.Types.Size -> InfoTag -> InfoTag

Set the size

withTitle : String -> InfoTag -> InfoTag

Set the title to be displayed

withDescription : Maybe String -> InfoTag -> InfoTag

Set the description to be displayed

withColor : Maybe Css.Color -> InfoTag -> InfoTag

Set the color

Display

toHtml : InfoTag -> Html.Styled.Html a

Convert configuration to HTML