Skip to content

phmngocnghia/react-bounce-checkbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

Demo gif

Demo page

Usage

Install npm install -S react-bounce-checkbox

<Checkbox
  textClassName="bouncechk__text"
  className="bouncechk__customClassName"
  text='hello world'
  modifierClass= 'blue'
  checked={this.state.isChecked}
  onChange={() => {
    this.setState(state => ({ isChecked: !state.isChecked }))
  }} />

For more example you can view in ./src/App.js

Themes aka modofierClass:

  • 'blue'
  • 'purple'
  • 'pink'
  • 'green'
  • 'orange'
  • 'gray'
  • 'red'

Props

static propTypes = {
  id: PropTypes.string,
  size: PropTypes.number,
  modifierClass: PropTypes.string,
  checked: PropTypes.bool.isRequired,
  onChange: PropTypes.func.isRequired,
  modifier: PropTypes.string,
  textClassName: PropTypes.string,
  text: PropTypes.string,
  className: PropTypes.string
}

Commands

  • npm start: start develop on webpack hmr server
  • npm build: build library
  • npm test: run test
  • npm run build-example: build example page
  • npm run build-library: build library

License

MIT

About

A beautiful react checkbox component with bounce and material animation. Up to 7 themes and customizable.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published