1 | import { PseudoBoxProps } from "../PseudoBox";
|
2 | import * as React from "react";
|
3 | import { BoxProps } from "../Box";
|
4 | import { Omit } from "../common-types";
|
5 |
|
6 | interface ISlider {
|
7 | value?: number;
|
8 | defaultValue?: number;
|
9 | isDisabled?: boolean;
|
10 | max?: number;
|
11 | min?: number;
|
12 | step?: number;
|
13 | "aria-labelledby"?: React.AriaAttributes["aria-labelledby"];
|
14 | "aria-label"?: React.AriaAttributes["aria-label"];
|
15 | "aria-valuetext"?: React.AriaAttributes["aria-valuetext"];
|
16 | orientation?: "horizontal" | "vertical";
|
17 | getAriaValueText?: (value: number) => string;
|
18 | size?: "sm" | "md" | "lg";
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | color?: string;
|
26 | name?: string;
|
27 | id?: string;
|
28 | onChange?: (newValue: number) => void;
|
29 | children?: React.ReactNode;
|
30 | }
|
31 |
|
32 | export const SliderThumb: React.FC<PseudoBoxProps>;
|
33 |
|
34 | export const SliderTrack: React.FC<BoxProps>;
|
35 |
|
36 | export const SliderFilledTrack: React.FC<PseudoBoxProps>;
|
37 |
|
38 | export type SliderProps = ISlider & Omit<BoxProps, "onChange" | "size">;
|
39 |
|
40 | declare const Slider: React.FC<SliderProps>;
|
41 |
|
42 | export default Slider;
|