This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Helpers to generate class names for BEM.
version 1.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.0
Committed At 2017-11-03 00:29:48 UTC
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

Modules

    README

    elm-bem-helpers

    Some helpers for using BEM class names that I often use.

    example

    import Html exposing (div, text, br)
    import Html.Attributes exposing (class)
    import BEMHelpers as BEM
    import BEMHelpers.Class as Class
    
    
    type Block
        = Menu
    
    
    type Element
        = List_Item
        | Image
    
    
    type Modifier
        = Active
    
    
    main =
        div [ Class.b__ Menu ]
            [ div [ Class.be_ Menu Image ]
                [ text (BEM.be_ Menu Image)
                ]
            , div [ Class.b_m Menu Active ]
                [ text (BEM.b_m Menu Active)
                ]
            , div [ Class.bem Menu List_Item Active ]
                [ text (BEM.bem Menu List_Item Active)
                ]
            ]