Skip to content

Latest commit

 

History

History

bpk-component-switch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

bpk-component-switch

Backpack switch component.

Installation

Check the main Readme for a complete installation guide.

Usage

import BpkSwitch from '@skyscanner/backpack-web/bpk-component-switch';

export default () => (
  <div>
    <BpkSwitch label="Switched on" checked />
    <BpkSwitch label="Turned off" />
  </div>
)

Props

Check out the full list of props on Skyscanner's design system documentation website.