The ui-toggle and ui-checkbox elements create fully accessible and stylable
toggle elements, that behave similar to native <input type="checkbox"> elements.
They can be used inside of form elements and contribute their value to the form's
FormData object, just as regular checkboxes would. In addition, they can have label
elements referencing them and clicking on the labels will toggle the custom elements and screen readers
will announce the labels, just as they would for regular checkboxes.
// ui-toggle // ui-checkbox
A toggle has 2 distinct states: checked and unchecked.
A checkbox has one additional state: checked, unchecked and indeterminate. The latter one is mostly used when a checkbox controls multiple other checkboxes.