UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

22 lines (21 loc) 914 B
import React from 'react'; import { Sizes } from '../ScrollArea.types'; import { ScrollbarContextValue } from './Scrollbar.context'; export interface ScrollbarPrivateProps { sizes: Sizes; hasThumb: boolean; onThumbChange: ScrollbarContextValue['onThumbChange']; onThumbPointerUp: ScrollbarContextValue['onThumbPointerUp']; onThumbPointerDown: ScrollbarContextValue['onThumbPointerDown']; onThumbPositionChange: ScrollbarContextValue['onThumbPositionChange']; onWheelScroll: (event: WheelEvent, maxScrollPos: number) => void; onDragScroll: (pointerPos: { x: number; y: number; }) => void; onResize: () => void; } interface ScrollbarProps extends ScrollbarPrivateProps, Omit<React.ComponentPropsWithoutRef<'div'>, 'onResize'> { } export declare const Scrollbar: React.ForwardRefExoticComponent<ScrollbarProps & React.RefAttributes<HTMLDivElement>>; export {};