import { type SliderProps as RACSliderProps } from 'react-aria-components'; import type { CommonProps, LabellableProps } from '../types.js'; export interface SliderProps extends CommonProps, LabellableProps, Pick, 'isDisabled' | 'minValue' | 'maxValue' | 'step' | 'formatOptions'> { /** A description for the field. Provides a hint such as specific requirements for what to choose. */ description?: string; /** The current value (controlled). */ value?: T; /** The default value (uncontrolled). */ defaultValue?: T; /** Handler that is called when the value changes. */ onChange?: (value: T) => void; /** Handler that is called when the slider stops moving. */ onChangeEnd?: (value: T) => void; /** * The `
` element to associate the input with. * The value of this attribute must be the id of a `` in the same document. * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#form). */ form?: string; /** * The name(s) of the input element(s), used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name). */ name?: T extends [number, number] ? [string, string] : string; /** * Whether to show input fields for slider values. * @default false */ withInput?: boolean; /** * Whether to show static labels with minimum and maximum values. * @default false * */ showLabels?: boolean; } /** * Allows users to select one or more values within a range. * * See [slider usage guidelines](https://ui.cimpress.io/components/slider/). */ declare const _Slider: (props: SliderProps & import("react").RefAttributes & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null; export { _Slider as Slider }; //# sourceMappingURL=slider.d.ts.map