arowM / elm-classname / Html.Attributes.Classname

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

classWith : (String -> String) -> String -> Html.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.