UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

16 lines (15 loc) 555 B
export interface ScrollbarContextValue { hasThumb: boolean; scrollbar: HTMLDivElement | null; onThumbChange: (thumb: HTMLDivElement | null) => void; onThumbPointerUp: () => void; onThumbPointerDown: (pointerPos: { x: number; y: number; }) => void; onThumbPositionChange: () => void; } export declare const ScrollbarProvider: ({ children, value }: { value: ScrollbarContextValue; children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element, useScrollbarContext: () => ScrollbarContextValue;