@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.
14 lines (13 loc) • 639 B
TypeScript
import * as React from 'react';
import { ScrubHandle, ScrubParams } from './useScrub.types.js';
/**
* @ignore - internal hook.
*/
export declare function useScrub(params: ScrubParams): {
isScrubbing: boolean;
getScrubAreaProps: (externalProps?: React.ComponentPropsWithRef<"span">) => React.ComponentPropsWithRef<"span">;
getScrubAreaCursorProps: (externalProps?: React.ComponentPropsWithRef<"span">) => React.ComponentPropsWithRef<"span">;
scrubAreaCursorRef: React.RefObject<HTMLSpanElement | null>;
scrubAreaRef: React.RefObject<HTMLSpanElement | null>;
scrubHandleRef: React.RefObject<ScrubHandle | null>;
};