ant_cpbutton

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

Stats

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

Readme

Ant Buttons component

N|Solid

Getting starter

$ npm install ant_cpbutton

Usage

import CPButton from "CPButton";

<CPButton>Default</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 npms.io.