Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sarahcssiqueira/scroll-bar-indicator
- Owner: sarahcssiqueira
- License: mit
- Created: 2024-08-05T19:12:32.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T22:14:15.000Z (15 days ago)
- Last Synced: 2024-11-03T23:19:03.573Z (15 days ago)
- Topics: npm-package, react, reactjs, scrollbar, scrolling, scrolling-website, scrollview
- Language: JavaScript
- Homepage: https://scroll-indicator-demo.sarahjobs.com
- Size: 382 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.
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).