A React component to view and switch between on or off states.
npm install @chakra-ui/switchThe Switch component is used as an alternative for the checkbox component,
switch between enabled or disabled states.
``sh
yarn add @chakra-ui/switch
npm i @chakra-ui/switch
`
`jsx`
import { Switch } from "@chakra-ui/switch"
`jsx`
Pass the size prop to change the size of the switch.
`jsx
<>
>
`
You can change the checked background color of the switch by passing thecolorScheme prop
`jsx``
- https://scottaohara.github.io/a11y_styled_form_controls/src/checkbox--switch/
- https://www.lightningdesignsystem.com/components/checkbox-button/