Files
NapCatQQ/.pnpm-store/v3/files/80/199eed60ba4baf2e9d5afdbcc8ba0e559f9f742da47761e909e0b2c0eef2146b20c189ea5cb4ce0b4affcd3b47b014dbb50b55b857f5f0b54aa24953622020
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

27 lines
665 B
Plaintext

import { MoveResult } from '@react-aria/interactions';
interface UseDraggableProps {
/**
* Ref to the moving target DOM node.
*/
targetRef?: React.RefObject<HTMLElement>;
/**
* Whether to disable the target is draggable.
* @default false
*/
isDisabled?: boolean;
/**
* Whether the target can overflow the viewport.
* @default false
*/
canOverflow?: boolean;
}
/**
* A hook to make a target draggable.
* @param props UseDraggableProps
* @returns MoveResult for the drag DOM node.
*/
declare function useDraggable(props: UseDraggableProps): MoveResult;
export { UseDraggableProps, useDraggable };