Giter VIP home page Giter VIP logo

react-dribble-button's Introduction

react-dribble-button

The Button component with pretty nice hive and click effects

Installation

$ npm install react-dribble-button

Demo

Try it out

| | |

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.

Property Type Defaut Description
color string default The color theme. Should be one of the folowing strings: 'red'
onClick function null Click handler.
children any null Children element.
className string '' Class name of the component.
component string or Component button Component type.
effectClassName string '' Class name of the effect component.
animationDuration number 650 The 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. :)

react-dribble-button's People

Contributors

skarankevich avatar z4o4z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-dribble-button's Issues

Issue with react vite

Uncaught SyntaxError: The requested module '/node_modules/react-dom/index.js' does not provide an export named 'default'

два warring после монтирования компонента

Warning: Failed prop type: ReactDribbleButton: prop type children is invalid; it must be a function, usually from React.PropTypes.
in ReactDribbleButton (created by Jss(ReactDribbleButton))

Warning: Unknown props sheet, animationDuration on tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
in button (created by ReactDribbleButton)

<DribbleButton color="deep-purple" onClick={() => this.setState({imgCount: this.state.imgCount += 12})} animationDuration={1000} >Больше</DribbleButton>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.