@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.
20 lines (19 loc) • 813 B
TypeScript
import * as React from 'react';
import type { useSliderRoot } from '../root/useSliderRoot.js';
export declare function useSliderValue(parameters: useSliderValue.Parameters): useSliderValue.ReturnValue;
export declare namespace useSliderValue {
interface Parameters extends Pick<useSliderRoot.ReturnValue, 'inputIdMap' | 'values'> {
'aria-live'?: React.AriaAttributes['aria-live'];
/**
* Options to format the input value.
*/
format?: Intl.NumberFormatOptions | Intl.NumberFormatOptions[];
}
interface ReturnValue {
getRootProps: (externalProps?: React.ComponentPropsWithRef<'output'>) => React.ComponentPropsWithRef<'output'>;
/**
* The formatted value(s) of the slider
*/
formattedValues: readonly string[];
}
}