UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

27 lines (26 loc) 1.24 kB
import { GetStylesApi } from '../../core'; import type { ScrollAreaFactory } from './ScrollArea'; export interface ScrollAreaContextValue { type: 'auto' | 'always' | 'scroll' | 'hover' | 'never'; scrollHideDelay: number; scrollArea: HTMLDivElement | null; viewport: HTMLDivElement | null; onViewportChange: (viewport: HTMLDivElement | null) => void; content: HTMLDivElement | null; onContentChange: (content: HTMLDivElement) => void; scrollbarX: HTMLDivElement | null; onScrollbarXChange: (scrollbar: HTMLDivElement | null) => void; scrollbarXEnabled: boolean; onScrollbarXEnabledChange: (rendered: boolean) => void; scrollbarY: HTMLDivElement | null; onScrollbarYChange: (scrollbar: HTMLDivElement | null) => void; scrollbarYEnabled: boolean; onScrollbarYEnabledChange: (rendered: boolean) => void; onCornerWidthChange: (width: number) => void; onCornerHeightChange: (height: number) => void; getStyles: GetStylesApi<ScrollAreaFactory>; } export declare const ScrollAreaProvider: ({ children, value }: { value: ScrollAreaContextValue; children: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element, useScrollAreaContext: () => ScrollAreaContextValue;