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.

16 lines (15 loc) 879 B
import * as React from 'react'; import type { GenericHTMLProps } from '../../utils/types.js'; import { type useSliderRoot } from '../root/useSliderRoot.js'; export declare function useSliderControl(parameters: useSliderControl.Parameters): useSliderControl.ReturnValue; export declare namespace useSliderControl { interface Parameters extends Pick<useSliderRoot.ReturnValue, 'areValuesEqual' | 'disabled' | 'dragging' | 'getFingerNewValue' | 'handleValueChange' | 'minStepsBetweenValues' | 'onValueCommitted' | 'percentageValues' | 'registerSliderControl' | 'setActive' | 'setDragging' | 'setValueState' | 'step' | 'thumbRefs'> { /** * The ref attached to the control area of the Slider. */ rootRef?: React.Ref<Element>; } interface ReturnValue { getRootProps: (externalProps?: GenericHTMLProps) => GenericHTMLProps; } }