interface QCheckboxProps extends HTMLAttributes<HTMLLabelElement>
?: boolean = false?: boolean = false?: boolean = $bindable(false)
?: string = ""?: boolean = $bindable(undefined)
value to a boolean. Each checkbox controls an independent choice;
clicking its label also toggles it.Gift note included true
value and indeterminate from the
group. A mixed state means some options are selected. The onchange handler selects
or clears them all.1 of 3 packed
indeterminate is independent of value. Use bind:indeterminate to observe it clearing when clicked; derive it from the selection
for a select-all control.
disabled prevents changes and removes the checkbox from keyboard navigation. Checked,
unchecked and mixed states remain visible.Managed by your administrator.
error marks an invalid choice. Try reserving without checking the box, then confirm
and retry. Reset updates the bound value and clears the feedback.Give each checkbox a visible label. Tab reaches enabled checkboxes; Space
toggles them. The native input announces checked, mixed and invalid states.
Explain errors in text and why an option is disabled. Use a select-all checkbox only for related choices, and announce selection changes with nearby status text.