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) 349 B
import { default as React } from 'react'; export declare const useDraggable: (defaultPosition?: { x: number; y: number; }) => { position: { x: number; y: number; } | undefined; isDragging: boolean; elementRef: React.RefObject<HTMLDivElement | null>; handleMouseDown: (event: React.MouseEvent) => void; };