-
I don't see any possibility to add plugin here: Question #2: OS react hook doesn't have option to set element, right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good day @Enkratia :) Adding plugins is not something thats specific to any framework. Plugins are global and should not be added in a component, instead they should be added in your entry point or somewhere in the global scope. You can add plugins like this: import { OverlayScrollbars } from 'overlayscrollbars';
OverlayScrollbars.plugin(MyPlugin); The react hook has the possibility to attach OverlayScrollbars to any element. You can find an example of this in the README of the react version: https://github.com/KingSora/OverlayScrollbars/tree/master/packages/overlayscrollbars-react#hook |
Beta Was this translation helpful? Give feedback.
Good day @Enkratia :)
Adding plugins is not something thats specific to any framework. Plugins are global and should not be added in a component, instead they should be added in your entry point or somewhere in the global scope. You can add plugins like this:
The react hook has the possibility to attach OverlayScrollbars to any element. You can find an example of this in the README of the react version: https://github.com/KingSora/OverlayScrollbars/tree/master/packages/overlayscrollbars-react#hook