UNPKG

599 BTypeScriptView Raw
1export interface SliderValueLabelProps {
2 children?: React.ReactElement<any>;
3 className?: string;
4 style?: React.CSSProperties;
5 /**
6 * If `true`, the value label is visible.
7 */
8 open: boolean;
9 /**
10 * The value of the slider.
11 */
12 value: React.ReactNode;
13 /**
14 * Controls when the value label is displayed:
15 *
16 * - `auto` the value label will display when the thumb is hovered or focused.
17 * - `on` will display persistently.
18 * - `off` will never display.
19 * @default 'off'
20 */
21 valueLabelDisplay?: 'on' | 'auto' | 'off';
22}