peterszerzo/elm-natural-ui/10.0.0

NOTE: this package is not compatible with Elm 0.19.1

NaturalUi.Toggle

Toggle component

type alias State =
Never

State

type alias Data =
{ left : String
, right : String
, isLeft : Bool
}

Data

getConfig : List (Setting State Data msg) -> Config msg

Get configuration from a list of settings

view : Config msg -> List (Html msg) -> Html msg

View