Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 562 Bytes

File metadata and controls

27 lines (19 loc) · 562 Bytes

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 -