UNPKG

react-snaplist-carousel

Version:

A light, pure React, no dependencies and flexible carousel. A modern way to do a classic thing.

10 lines (9 loc) 261 B
import { RefObject } from 'react'; export declare const useDragToScroll: ({ ref, disabled }: { ref: RefObject<HTMLDivElement>; disabled?: boolean | undefined; }) => { isDragging: boolean; disable: () => void; enable: () => void; };