Accessible and uniform-styled implementation of a checkbox.
Checkbox.checkbox "I agree with terms of service."
Msg.ToggleThis
True
|> Checkbox.withSize Size.small
|> Checkbox.withLabelVisible False
|> Checkbox.renderElement renderConfigDefines all the required properties for creating a checkbox.
checkbox "Buy Milk"
(Msg.ProductListSet Milk)
TrueShow or hide the checkbox's label.
TextField.setLabelVisible True someTextFieldEnd of the builder's life. The result of this function is a ready-to-insert Elm UI's Element.
The
Checkbox msgtype is used for describing the component for later rendering.