UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

20 lines 818 B
import * as React from 'react'; import type { BaseUIComponentProps } from "../../internals/types.js"; /** * The draggable part of the scrollbar that indicates the current scroll position. * Renders a `<div>` element. * * Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area) */ export declare const ScrollAreaThumb: React.ForwardRefExoticComponent<Omit<ScrollAreaThumbProps, "ref"> & React.RefAttributes<HTMLDivElement>>; export interface ScrollAreaThumbState { /** * The component orientation. */ orientation?: 'horizontal' | 'vertical' | undefined; } export interface ScrollAreaThumbProps extends BaseUIComponentProps<'div', ScrollAreaThumbState> {} export declare namespace ScrollAreaThumb { type State = ScrollAreaThumbState; type Props = ScrollAreaThumbProps; }