react-pure-button
React wrapper for Pure buttons
Last updated 6 years ago by bebraw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-pure-button 
SYNC missed versions from official npm registry.

build status

react-pure-button - React wrapper for Pure buttons

react-pure-button provides wrapper for Pure button elements making it easy to use Pure buttons using React.

Usage

var Button = require('react-pure-button');
<Button>Activate</Button>
<Button disabled={true}>Disable</Button>
<Button active={true}>Running</Button>
<Button primary={true}>OK</Button>
<Button><i class="fa fa-shopping-cart fa-lg"></i> Checkout</Button>

You can attach attributes to each component as usual. className won't override default Pure class so you can customize that. If you want icons, just pass the element referring to it within a Button.

Development

  • Linting - npm run lint
  • Testing - npm test - This will lint too.
  • Developing - npm start - This will run a server at localhost:3000 and use Hot Module Reloading.
  • Demo deployment - npm run gh-pages and npm run deploy-gh-pages - Demo will contain README.md by default and comes with simple styling based on Pure.

License

react-pure-button is available under MIT. See LICENSE for more details.

Current Tags

  • 0.1.0                                ...           latest (6 years ago)

1 Versions

  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (25)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |