UNPKG

@scrolia/react

Version:

A headless scrollbar component

20 lines 1.56 kB
import { Axis, OnDragEndOptions, OnDragMoveOptions, OnDragMoveResult, OnDragStartOptions, OnScrollOptions, OnScrollResult, OnSetLengthOptions, OnSetLengthResult, Options, Plugin, PluginProps, PluginPropsFunction } from "./@types/options.js"; import { ProviderProps } from "./components/provider/index.js"; import { ContainerProps } from "./components/container/index.js"; import { ContentProps } from "./components/content/index.js"; import { TrackXProps } from "./components/track/x.js"; import { TrackYProps } from "./components/track/y.js"; import { ThumbXProps } from "./components/thumb/x.js"; import { ThumbYProps } from "./components/thumb/y.js"; /** Scrollbar components. */ declare const Scrollbar: { Provider: (options: ProviderProps) => React.JSX.Element; Container: (props: ContainerProps) => React.JSX.Element; Content: (props: ContentProps) => React.JSX.Element; TrackX: (props: TrackXProps) => React.JSX.Element; TrackY: (props: TrackYProps) => React.JSX.Element; ThumbX: (props: ThumbXProps) => React.JSX.Element; ThumbY: (props: ThumbYProps) => React.JSX.Element; }; export { type Axis, type ContainerProps, type ContentProps, type OnDragEndOptions, type OnDragMoveOptions, type OnDragMoveResult, type OnDragStartOptions, type OnScrollOptions, type OnScrollResult, type OnSetLengthOptions, type OnSetLengthResult, type Options, type Plugin, type PluginProps, type PluginPropsFunction, type ProviderProps, Scrollbar, type ThumbXProps, type ThumbYProps, type TrackXProps, type TrackYProps }; //# sourceMappingURL=index.d.ts.map