Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sarahcssiqueira/scroll-bar-indicator

NPM package that shows a visual representation of the user's scrolling progress.
https://github.com/sarahcssiqueira/scroll-bar-indicator

npm-package react reactjs scrollbar scrolling scrolling-website scrollview

Last synced: 2 days ago
JSON representation

NPM package that shows a visual representation of the user's scrolling progress.

Awesome Lists containing this project

README

        

# Scroll Bar Indicator

[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![NPM Version](https://img.shields.io/npm/v/scroll-bar-indicator)](https://www.npmjs.com/package/scroll-bar-indicator)
[![Release Version](https://img.shields.io/github/release/sarahcssiqueira/scroll-bar-indicator.svg?color)](https://github.com/sarahcssiqueira/scroll-bar-indicator/releases/latest)

Customizable React component for create a customizable scroll bar indicator. It shows a visual representation of the user's scrolling progress.


Scroll Bar Indicator Screenshot

See [Demo here](https://scroll-indicator-demo.sarahjobs.com)

## Installation

To install run:

`npm i scroll-bar-indicator` or

`yarn add scroll-bar-indicator`

## Import

Import the component:

`import ScrollBarIndicator from 'scroll-bar-indicator';`

Add the component and pass your custom props:

```

```

## Props

| Prop | Type | Default Value | Description |
|---------------------|-----------------------|------------------------|-------------------------------------------|
| barColor | String | #b3b3b3 | Color of the scroll bar |
| barHeight | String | 2rem | Defines the bar height. |
| indicatorColor | String | #8e32ff | Color of the scroll indicator |
| infoColor | String | #333333 | Color of the scroll info text |
| showInfo | Boolean | True | Whether to display the scroll info text |
| info | String | Page | Text to display info below the component |

## Contributing

Contributions are welcome.

- Fork the repository
- Create your feature branch (`git checkout -b feature/my-feature`)
- Commit your changes (`git commit -m 'commit message'`)
- Push to the branch (`git push origin feature/my-featuree`)
- Create a new Pull Request

## License

This project is licensed under the MIT License - see the [LICENSE](./LICENSE.md) file for details.

## Contact

Issues, suggestions, or feedback, create an [issue](https://github.com/sarahcssiqueira/scroll-bar-indicator/issues).