SwitchComponentProps as props.
SwitchComponentProps
The
id of an external element that labels this switch, if a label exists. Pass this as the aria-labelledby
attribute on your root element to satisfy accessibility requirements when a visible label exists in the DOM.When
true, the switch is non-interactive and should be rendered in a visually disabled state.Callback that should be invoked with the new
isChecked value when the user toggles the switch.
