UNPKG

@grafana/ui

Version:
20 lines (19 loc) 902 B
import { Property } from 'csstype'; import { UIEventHandler } from 'react'; import { BoxProps } from '../Layout/Box/Box'; interface Props extends Omit<BoxProps, 'display' | 'direction' | 'element' | 'flex' | 'position'> { showScrollIndicators?: boolean; onScroll?: UIEventHandler<HTMLDivElement>; overflowX?: Property.OverflowX; overflowY?: Property.OverflowY; scrollbarWidth?: Property.ScrollbarWidth; } /** * This component is used to create a scrollable container. It uses native scrollbars, has an option to show scroll indicators, and supports most `Box` properties. * * https://developers.grafana.com/ui/latest/index.html?path=/docs/layout-scrollcontainer--docs */ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Props & { children?: import("react").ReactNode | undefined; } & import("react").RefAttributes<HTMLDivElement>>; export {};