UNPKG

@base-ui-components/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.

28 lines 969 B
import * as React from 'react'; import type { BaseUIComponentProps } from "../../utils/types.js"; /** * A vertical or horizontal scrollbar for the scroll area. * Renders a `<div>` element. * * Documentation: [Base UI Scroll Area](https://base-ui.com/react/components/scroll-area) */ export declare const ScrollAreaScrollbar: React.ForwardRefExoticComponent<ScrollAreaScrollbar.Props & React.RefAttributes<HTMLDivElement>>; export declare namespace ScrollAreaScrollbar { interface State { hovering: boolean; scrolling: boolean; orientation: 'vertical' | 'horizontal'; } interface Props extends BaseUIComponentProps<'div', State> { /** * Whether the scrollbar controls vertical or horizontal scroll. * @default 'vertical' */ orientation?: 'vertical' | 'horizontal'; /** * Whether to keep the HTML element in the DOM when the viewport isn’t scrollable. * @default false */ keepMounted?: boolean; } }