ahstro/elm-bulma-classes/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Bulma.Helpers

Some helpers that make using Bulma.Classes easier

Helpers

classList : List String -> String

Takes a list of classes and combines them into a single String. It's literally just String.join " ". If you need to conditionally add classes, use Html.Attributes.classList instead.

classList
    [ "some-class"
    , Bulma.button
    , Bulma.isSecondary
    , "some-other-class-for-some-reason"
    ] == "some-class button is-primary some-other-class-for-some-reason"