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.
A composable checkbox built on Ark UI. Usage is split across slot components: Root, Control, Indicator, Label, and HiddenInput.
RTL support:
BpkCheckboxV2is built on Ark UI and requiresBpkProviderfrom@skyscanner/backpack-web/bpk-component-layoutfor correct RTL layout. Wrap your application (or the relevant subtree) with<BpkProvider>.