/react-progress

Beautiful progress bar with React

Primary LanguageJavaScript

react-progress

Beautiful progress bar with React

You can see running example: https://rodrigowp.github.io/react-progress/

Installation

for npm users

npm i --save @rodrigowpl/react-progress

for yarn users

yarn add @rodrigowpl/react-progress

Simple usage

import { Progress } from '@rodrigowpl/react-progress'

<Progress />

Custom usage

  <Progress
    backgroundColor='#fcdfdf'
    progressColor='#f9575b'
    height={10}
  />

Props

Property Type Default Description
backgroundColor string transparent Set background color to wrapper element
progressColor string #6197c6 Set progress bar background color
height number 3 Set progress bar height
position string absolute Set progress bar layout position
fromTop number 0 Set progress position from parent top

Contributing

Dependencies:

  • Node.js >= v8;

Up and running

  • Install dependencies: yarn (or npm i);
  • Run yarn storybook (or npm run storybook) to storybook on http://localhost:6006
  • Run yarn storybook:build (or npm run storybook:build) for docs build (files will be) generated in the docs directory)
  • Run yarn build (or npm run build) for production build (files will be generated in the dist directory)

Scripts

  • yarn build (or npm run build): Build project to production
  • yarn storybook (or npm run storybook): Run Storybook on 6006 port
  • yarn storybook:build: Build Storybook to static files
  • npm run pub: Publish to npm

License

MIT © Rodrigo Wippel