react-styled-clickable-progress-bar
React component that creates a fixed, clickable, progress bar.
It is built using React hooks
.
Click on anywhere on the progress bar to automatically scroll the page.
Install
yarn add react-styled-clickable-progress-bar
npm install react-styled-clickable-progress-bar
Usage
Default Progress Bar
import React from "react";import ProgressBar from "react-styled-clickable-progress-bar"; const Index = <ProgressBar /> ;
Customize with styled-components
import React from "react";import styled from 'styled-components'import ProgressBar from "react-styled-clickable-progress-bar"; const Scroll = ` top: 40px;` const Index = <Scroll /> ;
Custom Settings
import React from "react";import ProgressBar from "react-styled-clickable-progress-bar"; const Index = <Scroll =/> ;
Configuration
<ProgressBar ="0px" ="0px" ="5px" ="black">