import type { BitsPrimitiveDivAttributes } from "../../shared/attributes.js"; import type { Direction, Orientation, WithChild, Without } from "../../shared/index.js"; export type ScrollAreaType = "hover" | "scroll" | "auto" | "always"; export type ScrollAreaRootPropsWithoutHTML = WithChild<{ /** * The type of scroll area to render. * * @defaultValue "hover" */ type?: ScrollAreaType; /** * The reading direction of the application. */ dir?: Direction; /** * The amount of time in milliseconds to delay before hiding the scrollbars * after leaving the scroll area or stopping scrolling. * * @defaultValue 600 */ scrollHideDelay?: number; }>; export type ScrollAreaRootProps = ScrollAreaRootPropsWithoutHTML & Without; export type ScrollAreaViewportPropsWithoutHTML = Omit; export type ScrollAreaViewportProps = ScrollAreaViewportPropsWithoutHTML & Without; export type ScrollAreaScrollbarPropsWithoutHTML = WithChild<{ orientation: Orientation; /** * Whether to forcefully mount the component. Useful when working with * external animation/transition libraries. */ forceMount?: boolean; }>; export type ScrollAreaScrollbarProps = ScrollAreaScrollbarPropsWithoutHTML & Without; export type ScrollAreaThumbPropsWithoutHTML = WithChild<{ /** * Whether to forcefully mount the component. Useful when working with * external animation/transition libraries. */ forceMount?: boolean; }>; export type ScrollAreaThumbProps = ScrollAreaThumbPropsWithoutHTML & Without; export type ScrollAreaCornerPropsWithoutHTML = WithChild; export type ScrollAreaCornerProps = ScrollAreaCornerPropsWithoutHTML & Without; export type _ScrollbarStubProps = Omit & { id: string; };