AppCheckbox
A styled native checkbox with v-model, an indeterminate state and an optional label. Extra attributes reach the input, not the label.
Install: pnpm add-component AppCheckbox
Basic usage
Bind it with v-model. Clicking the label toggles the box too.
Disabled
Disabled boxes keep their checked state and ignore clicks.
Select all
A parent checkbox goes indeterminate while only some of its children are checked.
API
modelValue(boolean): Checked state (use v-model).indeterminate(boolean): Shows a dash instead of a check and sets the native indeterminate flag, for a "some selected" parent.disabled(boolean): Disables the input and dims the whole label.label(string): Text beside the box. The default slot adds content after it.