0.2.2 • Published 7 years ago

react-dribble-button v0.2.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

npm.io

react-dribble-button

The Button component with pretty nice hive and click effects

Installation

$ npm install react-dribble-button

Demo

Try it out

| npm.io | npm.io |

Basic Usage

import DribbleButton from 'react-dribble-button';

// Inside of a component's render() method:
render() {
  return (
    <DribbleButton color="deep-orange" onClick={this.onClick} animationDuration={1000} >
      Try this cool color!
    </DribbleButton>
  );
}

Examples

Please clone the repo and run npm run storybook or yarn storybook to show examples of usages.

Usage (API)

The DribbleButton component has a few properties, as described below.

PropertyTypeDefautDescription
colorstringdefaultThe color theme. Should be one of the folowing strings: 'red''pink''blue''cyan''teal''lime''grey''green''amber''brown''black''orange''purple''yellow''indigo''default''blue-grey''light-blue''light-green''deep-orange''deep-purple
onClickfunctionnullClick handler.
childrenanynullChildren element.
classNamestring''Class name of the component.
componentstring or ComponentbuttonComponent type.
effectClassNamestring''Class name of the effect component.
animationDurationnumber650The dribble animation duration in ms.

Contributing

I welcome contributions! Please open an issue if you have any feature ideas or find any bugs. I also accept pull requests with open arms. I will go over the issues when I have time. :)

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago