@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) • 442 B
TypeScript
export interface ScrubParams {
disabled: boolean;
readOnly: boolean;
value: number | null;
inputRef: React.RefObject<HTMLInputElement | null>;
incrementValue: (amount: number, dir: 1 | -1, currentValue?: number | null) => void;
getStepAmount: () => number | undefined;
}
export interface ScrubHandle {
direction: 'horizontal' | 'vertical';
pixelSensitivity: number;
teleportDistance: number | undefined;
}