arowM/elm-classname/1.0.1

NOTE: the latest version is 1.0.2

Html.Attributes.Classname

A brief module for custom class attributes. It is usefull when using with CSS modules.

classWith : (String -> String) -> String -> Attribute msg

Helper function to declare custom class function.

myClass : String -> Attribute msg
myClass =
    classWith (\name -> "prefix__" ++ name)
classMixinWith : (String -> String) -> String -> Mixin msg

Mixin version of classWith.