Accessible and uniform-styled implementation of a checkbox.
Checkbox.checkbox "I agree with terms of service."
Msg.ToggleThis
True
|> Checkbox.renderElement renderConfigDefines all the required properties for creating a checkbox.
checkbox "Buy Milk"
(Msg.ProductListSet Milk)
TrueHide the checkbox's label.
Checkbox.withHiddenLabel someCheckboxThe different sizes the Checkbox can take
Checkbox.withSize changes the size of the Checkbox
Checkbox.withSize Checkbox.sizeMD someCheckboxSmall-sized Checkbox
Medium-sized Checkbox
End 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.