UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

28 lines (27 loc) 993 B
import React from 'react'; import { SetScrollOptions, ScrollbarOverflow, ScrollbarRef, ScrollbarShadowsProps, ScrollbarVariant } from './types'; export interface ScrollbarProps extends React.PropsWithChildren { className?: string; scrollbarClassName?: string; variant?: ScrollbarVariant; size?: number; scrollShadows?: ScrollbarShadowsProps; scrollLocked?: SetScrollOptions; overflow?: ScrollbarOverflow; disabled?: boolean; disableShadows?: boolean; withStickyBottom?: boolean; defaultStickyBottom?: boolean; isHorizontalScrollbar?: boolean; onScroll?: ScrollbarScrollEventHandler; } export type ScrollbarScrollEventHandler = (event: { isTop: boolean; isBottom: boolean; }) => unknown; export declare const Scrollbar: React.ForwardRefExoticComponent<ScrollbarProps & React.RefAttributes<ScrollbarRef>>; export * from './types'; export * from './context'; export * from './styled'; export * from './shadow'; export * from './style';