Backpack close button component.
Check the main Readme for a complete installation guide.
import BpkCloseButton from '@skyscanner/backpack-web/bpk-component-close-button';
export default () => (
<BpkCloseButton label="Close" onClick={() => console.log('click')} />
);
Property | PropType | Required | Default Value |
---|---|---|---|
label | string | true | - |
onClick | func | true | - |