abradley2/form-elements/4.1.2

FormElements.Switch

A simple on/off switch. Use for cases where the user has one option out of a binary selection

Definitions

view : Props a -> Html a

The view for displaying the element.

type alias Props a =
{ isOn : Bool
, label : String
, handleToggle : Bool -> a
}

Configurable properties for rendering the view