Shared checkbox form control for mounted admin pages.
Renders an inline ax-field-inline label wrapping the native
<input type="checkbox">. Supports three states: unchecked,
checked, and indeterminate. Because indeterminate is not a
standard HTML attribute it must be set via a JS hook or
phx-hook; this component emits data-indeterminate for
the hook to pick up, and sets aria-checked="mixed" for
screen readers when indeterminate is true.
Summary
Functions
Attributes
id(:string) (required)name(:string) (required)label(:string) (required)checked(:boolean) - Defaults tofalse.indeterminate(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.class(:string) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["phx-click", "phx-value-id", "value", "form", "phx-hook"].