The disabled state of the component.
Draws the checkbox in indeterminate state.
Sets the control into invalid state (visual state only).
The label position of the control.
The name attribute of the control.
The initial checked state of the component.
Returns the HTMLFormElement associated with this element.
A string containing the validation message of this element.
Returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
A boolean value which returns true if the element is a submittable element that is a candidate for constraint validation.
Removes focus from the control.
Checks for validity of the control and emits the invalid event if it invalid.
Simulates a click on the control.
Sets focus on the control.
Checks for validity of the control and shows the browser message if it invalid.
Sets a custom validation message for the control.
As long as message
is not empty, the control is considered invalid.
A check box allowing single values to be selected/deselected.
Element
igc-checkbox
Slot
Slot
helper-text - Renders content below the input.
Slot
value-missing - Renders content when the required validation fails.
Slot
custom-error - Renders content when setCustomValidity(message) is set.
Slot
invalid - Renders content when the component is in invalid state (validity.valid = false).
Fires
igcChange - Emitted when the control's checked state changes.
Csspart
base - The base wrapper of the checkbox.
Csspart
control - The checkbox input element.
Csspart
label - The checkbox label.
Csspart
indicator - The checkbox indicator icon.