Backpack switch component.
Check the main Readme for a complete installation guide.
import BpkSwitch from '@skyscanner/backpack-web/bpk-component-switch';
export default () => (
<div>
<BpkSwitch label="Switched on" checked />
<BpkSwitch label="Turned off" />
</div>
)
Check out the full list of props on Skyscanner's design system documentation website.