0.0.8 • Published 2 years ago

my-custom-scrollbar v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Custom Scrollbar Example

Check out the custom scrollbar example here.

Installation

Install the package using npm:

npm  install  my-custom-scrollbar

To hide the existing scrollbar, add the following CSS to your stylesheet:

body {

scrollbar-width: none; /_ Firefox _/

}

::-webkit-scrollbar {

display: none;

}

Usage

Simply import and use the Scroll component inside your app:

import Scroll from 'my-custom-scrollbar';

function App() {
return (
<div>
	{/_ Your other components _/}
		<Scroll  color="red" />
</div>
);
}

You can customize the scrollbar color by changing the color prop.

0.0.3

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago