rundis / elm-bootstrap.info

User documentation for Elm Bootstrap
BSD 3-Clause "New" or "Revised" License
11 stars 19 forks source link

Adding a Bootstrap class to a regular HTML Element #18

Open sssilver opened 6 years ago

sssilver commented 6 years ago

Hello,

import Html exposing (label)
import Bootstrap.Grid as Grid
import Bootstrap.Grid.Row as Row
import Bootstrap.Grid.Col as Col

-- ...

view model =
    Grid.container []
        [ CDN.stylesheet
        , Grid.row [ Row.centerXs ]
            [ Grid.col [ Col.sm6 ]  -- Col.sm6 is nice and typed
                [ label [ class "col-sm-4" ]  -- "col-sm-4" is no longer typed :(
                    [ text "My awesome label" ]
-- ...

What's the idiomatic way to make the label's class typed in this case?

Many thanks.