UNPKG

@jigoooo/shared-ui

Version:

A reusable React component library and design system with TypeScript support, built on Vite for seamless integration and optimized performance.

14 lines (13 loc) 371 B
import { MouseEvent as ReactMouseEvent } from 'react'; export declare const useDraggable: (defaultPosition?: { x: number; y: number; }) => { position: { x: number; y: number; } | undefined; isDragging: boolean; elementRef: import('react').RefObject<HTMLDivElement | null>; handleMouseDown: (event: ReactMouseEvent) => void; };