Backpack checkbox component.
Check the main Readme for a complete installation guide.
import BpkCheckbox from '@skyscanner/backpack-web/bpk-component-checkbox';
export default () => (
<BpkCheckbox
name="prefer-directs"
onChange={() => console.log('prefer directs changed!')}
label="Prefer directs"
checked
/>
);
Check out the full list of props on Skyscanner's design system documentation website.