https://github.com/bigardone/elm-css-placeholders
Package to generate HTML placeholders using elm and elm-css
https://github.com/bigardone/elm-css-placeholders
Last synced: 2 months ago
JSON representation
Package to generate HTML placeholders using elm and elm-css
- Host: GitHub
- URL: https://github.com/bigardone/elm-css-placeholders
- Owner: bigardone
- License: bsd-3-clause
- Created: 2020-04-19T14:13:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T20:44:47.000Z (about 4 years ago)
- Last Synced: 2025-02-08T10:24:47.751Z (4 months ago)
- Language: Elm
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-css-placeholders
A package to generate HTML placeholders using [elm-css](https://github.com/rtfeldman/elm-css), inspired by [https://github.com/phuoc-ng/csslayout](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.
```elm
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
]
]
```