nsbno / spor-elm / Spor.LineTag.TravelTag

A component for displaying travel tags


type TravelTag

A component for displaying travel tags

Config

init : TravelTag

Create an initial configuration for a TravelTag component.

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

Set the variant

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

Set the size

withTitle : String -> TravelTag -> TravelTag

Set the title to be displayed

withDescription : Maybe String -> TravelTag -> TravelTag

Set the description to be displayed

withDeviationLevel : Maybe Spor.LineTag.Types.DeviationLevel -> TravelTag -> TravelTag

Set the deviation level

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

Set the color

withBackgroundColor : Maybe Css.Color -> TravelTag -> TravelTag

Set the background color

Display

toHtml : TravelTag -> Html.Styled.Html a

Convert configuration to HTML