0.2.0 • Published 11 months ago

scroll-bar-indicator v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Scroll Bar Indicator

Project Status: Active – The project has reached a stable, usable state and is being actively developed. License: MIT NPM Version Release Version

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

See Demo here

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:

    <ScrollBarIndicator
      barColor="#b3b3b3"
      barHeight = "2rem",
      indicatorColor="#8e32ff" 
      infoColor="#333333"
      showInfo={true},
      info="Page"
    />

Props

PropTypeDefault ValueDescription
barColorString#b3b3b3Color of the scroll bar
barHeightString2remDefines the bar height.
indicatorColorString#8e32ffColor of the scroll indicator
infoColorString#333333Color of the scroll info text
showInfoBooleanTrueWhether to display the scroll info text
infoStringPageText 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 file for details.

Contact

Issues, suggestions, or feedback, create an issue.

0.2.0

11 months ago

0.1.0

11 months ago

1.0.0

12 months ago