Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 748 Bytes

readme.md

File metadata and controls

29 lines (21 loc) · 748 Bytes

bpk-component-chip

Backpack chip component.

Installation

npm install bpk-component-chip --save-dev

Usage

import React from 'react';
import BpkChip from 'bpk-component-chip';

export default () => (
  <BpkChip onClose={event => console.log('Chip closing!', event)} >This is a chip!</BpkChip>
);

Props

Property PropType Required Default Value
onClose func yes -
children node yes -
className string no -
closeLabel oneOfType(string, func) no -