uncover-co / elm-widgets-alpha

Alpha version of uncover-co/elm-widgets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-widgets

A collection of stateless widgets themed trough elm-theme.

Visit elm-widgets.netlify.app for a more comprehensive overview and a showcase of all available widgets.

Alpha - This is the alpha version of elm-widgets. This means this package will be updated faster but breakage is expected. The stable version can be found at uncover-co/elm-widgets.

Getting Started

elm-widgets is plug-and-play with whatever html and styling approach you prefer - elm-css, elm-ui, tailwind, you name it - just insert elm-widgets globalStyles somewhere in your application html and use any widget directly.

import W.Styles
import W.Button


main : Html msg
main =
    div []
        [ W.Styles.globalStyles
        , W.Styles.baseTheme
        , ...
            W.Button.view []
                { label = [ text "Sir, would you please click me?" ]
                , onClick = ...
                }
        ]

About

Alpha version of uncover-co/elm-widgets.

License:Mozilla Public License 2.0


Languages

Language:Elm 97.7%Language:CSS 2.0%Language:JavaScript 0.4%