UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

16 lines (15 loc) 565 B
import React from 'react'; import { ScrollbarShadowsProps } from './types'; export interface ScrollbarContextValue { scrollbarSize: number; scrollShadows?: ScrollbarShadowsProps; setScroll: () => void; disabled: boolean; isLeft: boolean; isRight: boolean; isTop: boolean; isBottom: boolean; } export declare const ScrollbarContext: React.Context<ScrollbarContextValue>; export declare const ScrollbarProvider: React.FC<ScrollbarContextValue & React.PropsWithChildren>; export declare const useScrollbar: () => ScrollbarContextValue;