Module "wordpress-plugins/real-cookie-banner/src/public/ts/hooks/usePerfectScrollbar"
Functions
usePerfectScrollbar
- usePerfectScrollbar(__namedParameters: { parentContainer: string; thumbColor: string }): { ref: MutableRefObject<undefined>; scrollbar: PerfectScrollbar }
-
Parameters
-
__namedParameters: { parentContainer: string; thumbColor: string }
-
parentContainer: string
-
thumbColor: string
Returns { ref: MutableRefObject<undefined>; scrollbar: PerfectScrollbar }
-
ref: MutableRefObject<undefined>
-
scrollbar: PerfectScrollbar
Create a simplified
perfect-scrollbar
container with predefined style. Please note the following things:This implementation currently only supports y-axis (vertical) due to minimization reasons.
https://github.com/mdbootstrap/perfect-scrollbar