Beautiful progress bar with React
You can see running example: https://rodrigowp.github.io/react-progress/
npm i --save @rodrigowpl/react-progress
yarn add @rodrigowpl/react-progress
import { Progress } from '@rodrigowpl/react-progress'
<Progress />
<Progress
backgroundColor='#fcdfdf'
progressColor='#f9575b'
height={10}
/>
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 |
- Node.js
>=
v8;
- Install dependencies:
yarn
(ornpm i
); - Run
yarn storybook
(ornpm run storybook
) to storybook onhttp://localhost:6006
- Run
yarn storybook:build
(ornpm run storybook:build
) for docs build (files will be) generated in thedocs
directory) - Run
yarn build
(ornpm run build
) for production build (files will be generated in thedist
directory)
yarn build (or npm run build)
: Build project to productionyarn storybook (or npm run storybook)
: Run Storybook on6006
portyarn storybook:build
: Build Storybook to static filesnpm run pub
: Publish to npm
MIT © Rodrigo Wippel