1.0.1 • Published 4 years ago

@codereview/progress-bar v1.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

@codereview/progress-bar

Progress bar on scroll the page

NPM JavaScript Style Guide

demo

Demo

Install

npm install --save @codereview/progress-bar

Or

yarn add --dev @codereview/progress-bar

Usage

import * as React from "react";

import ScrollProgress from "@codereview/progress-bar";

const props = {
  rtl: "left",
  color: "red",
  width: "50%",
  height: "1em"
};

class Example extends React.Component {
  render() {
    return <ScrollProgress {...props} />;
  }
}

Props

  • Note: All Props are optional
NameTypedefaultdescription
rtlstringrightright to left
colorstring#000showing color
widthstring100%width of scroll bar
heightstring0.3emheight of scroll bar

License

MIT © musti-91