UNPKG

843 BTypeScriptView Raw
1import * as React from 'react';
2
3export interface ValueLabelUnstyledProps {
4 className?: string;
5 style?: React.CSSProperties;
6 /**
7 * The components used for each slot inside the ValueLabel.
8 * Either a string to use a HTML element or a component.
9 * @default {}
10 */
11 components?: {
12 Root?: React.ElementType;
13 };
14 /**
15 * The value of the slider.
16 * For ranged sliders, provide an array with two values.
17 */
18 value?: number | number[];
19 /**
20 * Controls when the value label is displayed:
21 *
22 * - `auto` the value label will display when the thumb is hovered or focused.
23 * - `on` will display persistently.
24 * - `off` will never display.
25 * @default 'off'
26 */
27 valueLabelDisplay?: 'on' | 'auto' | 'off';
28}
29
30export default function SliderValueLabelUnstyled(props: ValueLabelUnstyledProps): JSX.Element;