Optional
classOptional
hasTrue when (input related to) switch is erroneous
false
Optional
id?: stringOptional unique identifier
Optional
isIf true
, the component is checked.
Optional
isEnabled status of switch
false
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