Checkbox

Properties

NameTypeDefaultDescription
checkedBooleanfalseWhether the checkbox is checked.
indeterminateBooleanfalseWhether the checkbox is in an indeterminate state.
requiredBooleanfalseWhether the checkbox is required for form submission.
disabledBooleanfalseWhether the checkbox is disabled (inherited from FormAssociated).

Events

NameTypeDescription
changeCustomEvent<boolean>Dispatched when the checked state changes. The detail property contains the new checked state.

Methods

Inherits all standard HTMLElement methods.