main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
461 bytes
|
Line | |
---|
1 | import { CSSProperties, RefObject } from 'react';
|
---|
2 | export interface State {
|
---|
3 | isSliding: boolean;
|
---|
4 | value: number;
|
---|
5 | }
|
---|
6 | export interface Options {
|
---|
7 | onScrub: (value: number) => void;
|
---|
8 | onScrubStart: () => void;
|
---|
9 | onScrubStop: (value: number) => void;
|
---|
10 | reverse: boolean;
|
---|
11 | styles: boolean | CSSProperties;
|
---|
12 | vertical?: boolean;
|
---|
13 | }
|
---|
14 | declare const useSlider: (ref: RefObject<HTMLElement>, options?: Partial<Options>) => State;
|
---|
15 | export default useSlider;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.