Optional
classOptional
hasTrue when (input related to) switch is erroneous
false
Optional
id?: stringOptional unique identifier
Optional
isIf true
, the component is checked.
Optional
isIf true
, the component is checked by default.
Optional
isEnabled status of switch
false
Optional
isIf true
, the component is in the indeterminate state.
false
Optional
labelIndicates the position of the label relative to the checkbox.
'after'
Optional
labelIf specified, the label that will appear associated with the checkbox.
'' (no label will be shown)
Optional
onCallback fired when the state is changed.
The event source of the callback. You can pull out the new value by accessing event.target.value (string). You can pull out the new checked state by accessing event.target.checked (boolean).
Additional css classes to help with unique styling of the switch