UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

21 lines (20 loc) 857 B
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.ComponentProps<'div'>, 'onResize'> { } export declare function Scrollbar(props: ScrollbarProps): import("react/jsx-runtime").JSX.Element; export {};