UNPKG

752 BTypeScriptView Raw
1import * as React from 'react';
2import type { AriaValueFormat, Direction, SliderClassNames, SliderStyles } from './interface';
3export interface SliderContextProps {
4 min: number;
5 max: number;
6 includedStart: number;
7 includedEnd: number;
8 direction: Direction;
9 disabled?: boolean;
10 keyboard?: boolean;
11 included?: boolean;
12 step: number | null;
13 range?: boolean;
14 tabIndex: number | number[];
15 ariaLabelForHandle?: string | string[];
16 ariaLabelledByForHandle?: string | string[];
17 ariaValueTextFormatterForHandle?: AriaValueFormat | AriaValueFormat[];
18 classNames: SliderClassNames;
19 styles: SliderStyles;
20}
21declare const SliderContext: React.Context<SliderContextProps>;
22export default SliderContext;