bpk-component-close-button
v4.1.2
Published
Backpack close button component.
Downloads
3,566
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 | - |