UNPKG

@dnd-kit/core

Version:

dnd kit – a lightweight React library for building performant and accessible drag and drop experiences

14 lines (13 loc) 611 B
import type { MouseEvent } from 'react'; import type { SensorProps } from '../types'; import { AbstractPointerSensor, AbstractPointerSensorOptions } from '../pointer'; export interface MouseSensorOptions extends AbstractPointerSensorOptions { } export declare type MouseSensorProps = SensorProps<MouseSensorOptions>; export declare class MouseSensor extends AbstractPointerSensor { constructor(props: MouseSensorProps); static activators: { eventName: "onMouseDown"; handler: ({ nativeEvent: event }: MouseEvent, { onActivation }: MouseSensorOptions) => boolean; }[]; }