UNPKG

react-nice-scroll

Version:

A React library to smooth scroll and scroll-based animations.

10 lines (9 loc) 472 B
/// <reference types="react" /> import { Scrollbar } from 'smooth-scrollbar/scrollbar'; interface State { container: HTMLElement | HTMLDivElement | undefined; smoothScrollBar: Scrollbar | undefined; allowScroll: boolean; } export declare const useGlobalState: <StateKey extends "container" | "smoothScrollBar" | "allowScroll">(stateKey: StateKey) => readonly [State[StateKey], (u: import("react").SetStateAction<State[StateKey]>) => void]; export {};