abradley2 / form-elements / 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 : Basics.Bool
, label : String
, handleToggle : Basics.Bool -> a 
}

Configurable properties for rendering the view