Standalone styled checkbox input with size and color variants.
For use inside Phoenix forms with label and error support, see checkbox_field/1
in PtahUi.Components.Form.
Examples
<.checkbox />
<.checkbox checked size="lg" color="success" />
<.checkbox color="error" disabled />
Summary
Functions
Attributes
color(:string) - Defaults tonil.size(:string) - Defaults to"md".checked(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.id(:string) - Defaults tonil.name(:string) - Defaults tonil.value(:string) - Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.