Module

Halogen.Widgets.Toggle

Package
purescript-halogen-widgets
Repository
afcondon/purescript-halogen-widgets

A controlled on/off switch. The parent owns value; clicking requests the opposite via Changed. The simplest instance of the contract — no ephemeral state at all (see CONTRACT.md).

#Input Source

type Input = { disabled :: Boolean, label :: Maybe String, value :: Boolean }

#Output Source

data Output

Constructors

#Query Source

data Query a

Constructors

#component Source

#defaultInput Source