The disabled state of the component
[disabled=false]
Control the validity of the control.
The label position of the control.
label-position
The name attribute of the control.
Makes the control a required field in a form context.
Static
stylesStatic
Readonly
tagThe checked state of the control.
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.
The value attribute of the control.
A boolean value which returns true if the element is a submittable element that is a candidate for constraint validation.
Static
register
Similar to a checkbox, a switch controls the state of a single setting on or off.
Element
igc-switch
Slot
Fires
igcChange - Emitted when the control's checked state changes.
Fires
igcFocus - Emitted when the control gains focus.
Fires
igcBlur - Emitted when the control loses focus.
Csspart
base - The base wrapper of the switch.
Csspart
control - The switch control.
Csspart
thumb - The position indicator of the switch.
Csspart
label - The switch label.