Skip to content

musti-91/progress-bar

Repository files navigation

@codereview/progress-bar

Progress bar on scroll the page

NPM JavaScript Style Guide

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
Name Type default description
rtl string right right to left
color string #000 showing color
width string 100% width of scroll bar
height string 0.3em height of scroll bar

License

MIT © musti-91

About

Progress bar on scroll

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published