bpk-component-close-button
v4.1.2
Published
Backpack close button component.
Downloads
4,283
Maintainers
Keywords
Readme
bpk-component-close-button
Backpack close button component.
Installation
npm install bpk-component-close-button --save-dev
Usage
import React from 'react';
import BpkCloseButton from 'bpk-component-close-button';
export default () => (
<BpkCloseButton label="Close" onClick={() => console.log('click')} />
);
Props
| Property | PropType | Required | Default Value | | -------- | -------- | -------- | ------------- | | label | string | true | - | | onClick | func | true | - |