Skip to content

kostberg/react-custom-scrollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Mozilla Add-on Mozilla Add-on

React custom scrollbar ⚡

Props/Options

  • className = "scrollbar" (string)
  • disabled = false (boolean, use this to disable scroll on for example integrating menus with this)
  • height = "content" (content or any acceptable css value for height)
  • autohide = 0 (integer)

Styling 💅

Easiest way is just to edit the provided scss file manually or hook use classname provided in the component props with you own css file

Usage:

import CustomScrollbar from './components/CustomScrollbar';

const Component = (
  <CustomScrollbar height="250vh" shouldRender={ isDesktop } autohide={ 1500 }>
    // Content goes here...
  </CustomScrollbar>
)

Installment

Just download all the files in this repository and put them in ur prefered folders. Just make sure the dependecies has the correct paths 😎

About

Blazing fast react custom scrollbar component ⚡

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •