0.0.8 • Published 1 year ago

my-custom-scrollbar v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago