bigardone / elm-css-placeholders

Package to generate HTML placeholders using elm and elm-css

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-css-placeholders

A package to generate HTML placeholders using elm-css, inspired by https://github.com/phuoc-ng/csslayout. Still WIP tho.

Installation

Install this package with:

elm install bigardone/elm-css-placeholders

Placeholders

Block

Renders a text block placeholder.

import Placeholders.Block

...

view : Model -> Html Msg
view model =
    Html.Styled.section
        []
        [ Html.Styled.div
            []
            [ Html.Styled.h2
                []
                [ Html.Styled.text "Text block" ]
            , Placeholders.Block.view Placeholders.Block.default
            ]
        ]

About

Package to generate HTML placeholders using elm and elm-css

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 100.0%