-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSlider.d.ts
28 lines (26 loc) · 943 Bytes
/
Slider.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import {
Component
} from 'react'
import {
RMWCTagProps
} from './Base'
// Cannot assign React.HTMLAttributes because onChange signature is incompatible
export interface SliderProps extends RMWCTagProps {
/** A callback that takes an event with event.target.value set to the Slider's value. */
onChange?(evt: Event): any,
/** The value of the Slider. */
value?: number | string,
/** The minimum value of the Slider. */
min?: number | string,
/** The maximum value of the Slider. */
max?: number | string,
/** A step to quantize values by. */
step?: number | string,
/** Displays the exact value of the Slider on the knob. */
discrete?: boolean,
/** Displays the individual step markers on the Slider track. */
displayMarkers?: boolean,
/** Disables the control. */
disabled?: boolean
}
export class Slider extends Component<SliderProps> { }