KingSora / OverlayScrollbars

A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.
https://kingsora.github.io/OverlayScrollbars
MIT License
3.71k stars 215 forks source link

Need A Clear, Simple, React Example #606

Closed slimandslam closed 5 months ago

slimandslam commented 5 months ago

When I wrap content that always scrolls in my React app, nothing changes. I get the same scroll bars as always. I followed all installation instructions. Is this all I need to do in order to have the overlay scrollbars? Just wrap the content in the component?

import { OverlayScrollbarsComponent } from "overlayscrollbars-react";

<OverlayScrollbarsComponent defer>
  example content
</OverlayScrollbarsComponent>
KingSora commented 5 months ago

Good day @slimandslam :)

I guess you forgot to import the styles like described in the overlayscrollbars-react README