@vicentedealencar/react-pdv-crl-5r

0.0.1 • Public • Published

@vicentedealencar/react-pdv-crl-5r npm Travis Codecov

TODO: Add a short description for your library. It should probably match the field description on the package.json file.

Usage

  • Install with yarn add @vicentedealencar/react-pdv-crl-5r.
  • Install peer dependencies (if you haven't already) yarn add react@^16.0.0 react-dom@^16.0.0.
  • Use the component:
import ReactPdvCrl5r from '@vicentedealencar/react-pdv-crl-5r'
import '@vicentedealencar/react-pdv-crl-5r/dist/react-pdv-crl-5r.css'

<ReactPdvCrl5r />

Demo

Props

prop type default required description
theme 'default', 'primary' 'default' Button theme.
locale string 'en' Language to display the component. en and es are supported by default, but you can add other languages using the translations prop.
translations object Extra locales for the component. Use this file as a template and pass the translations as { [locale]: [translations] }.

Development

  • Run yarn start to start building the library in watch mode.
  • Write stories in the stories/index.js file.
  • This project lints and prettifies source files automatically before commiting. You can run yarn lint and yarn prettify to do this operations manually before commiting (although you shouldn't need to).

Testing

  • Execute yarn test to run the test with jest. Use yarn test --watch to run the tests in watch mode.
  • After every run (even in watch mode), a summary coverage report will be displayed directly on the terminal and a full html report will be generated in tests/coverage.

Publishing

  • Run yarn publish to release a new version.
  • Before publishing the library will be automatically built. You can manually build for production using yarn build.
  • After publishing the stories will be automatically deployed to github pages. You can manually deploy the stories using yarn deploy-storybook.

More info

Read @5rabbits/create-react-lib's wiki for extra information and advanced usage.

Package Sidebar

Install

npm i @vicentedealencar/react-pdv-crl-5r

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

92.5 kB

Total Files

6

Last publish

Collaborators

  • vicentedealencar