ant_cpbutton

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

Usage no npm install needed!

<script type="module">
  import antCpbutton from 'https://cdn.skypack.dev/ant_cpbutton';
</script>

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 -