The Switch component is used to switch between two options and the result of the change is immediate.
Switch component is used as an alternative for the
label are not supported.
Switch will work with any
height you pass it. Although it’s only ever used with:
Switch component passes on the original event through the
e.target.checked to get the latest value and update state accordingly.