px-components-react

0.0.2 • Public • Published

px-components-react

Why? Well the current px component library is built with Polymer and Web Components. So this port will attempt to bring those components to a React compatible library.

Build Status bitHound Score codecov Dependency Status devDependencies Status peerDependencies Status

Install

To use this library simply install it with npm or yarn:

$ npm install px-components-react

Then import the library or just components you want.

import px from 'px-components-react';
import {Button} from 'px-components-react';

<Button label='My Button' primary/>

Build

  • Start dev server - $ npm start
  • Creating a version - $ npm version <x.y.z>
  • Publishing a version - $ npm publish
  • Create a dist build - $ npm run dist

Test

  • Running tests: $ npm test
  • Running code coverage: $ npm run test:coverage
  • Running tests continuously: $ npm run test:watch
  • Running individual tests: $ npm test -- <pattern>
  • Linting with eslint: $ npm run test:lint

Docs

  • Building documentation: $ npm run gh-pages
  • Deploying documentation: $ npm run gh-pages:deploy
  • Generating bundle stats: $ npm run gh-pages:stats

License

Available under MIT. See LICENSE for more details.

Package Sidebar

Install

npm i px-components-react

Weekly Downloads

22

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jonniespratley