source: imaps-frontend/node_modules/react-use/lib/useSlider.d.ts

main
Last change on this file 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
RevLine 
[d565449]1import { CSSProperties, RefObject } from 'react';
2export interface State {
3 isSliding: boolean;
4 value: number;
5}
6export 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}
14declare const useSlider: (ref: RefObject<HTMLElement>, options?: Partial<Options>) => State;
15export default useSlider;
Note: See TracBrowser for help on using the repository browser.