A minimal boilerplate for building a react component for npm, including a demo page.


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
1650Jan 22, 2019Jan 5, 2018Minified + gzip package size for ant_cpbutton in KB


Ant Buttons component


Getting starter

$ npm install ant_cpbutton


import CPButton from "CPButton";

<CPButton type="primary">primary</CPButton>
<CPButton type="danger">Danger</CPButton>
<CPButton type="success">success</CPButton>
<CPButton type="primary" shape="circle" icon="search" />
<CPButton type="success" shape="circle" icon="download" />
Property Description Type Default
disabled disabled state of button boolean false
onClick set the handler to handle click event function -

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from