ant_cpbutton

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

Stats

StarsIssuesVersionUpdatedCreatedSize
ant_cpbutton
3.2.23 years ago3 years agoMinified + 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.