UNPKG

@dnd-kit/core

Version:

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

14 lines (13 loc) 642 B
import type { PointerEvent } from 'react'; import type { SensorProps } from '../types'; import { AbstractPointerSensor, AbstractPointerSensorOptions } from './AbstractPointerSensor'; export interface PointerSensorOptions extends AbstractPointerSensorOptions { } export declare type PointerSensorProps = SensorProps<PointerSensorOptions>; export declare class PointerSensor extends AbstractPointerSensor { constructor(props: PointerSensorProps); static activators: { eventName: "onPointerDown"; handler: ({ nativeEvent: event }: PointerEvent, { onActivation }: PointerSensorOptions) => boolean; }[]; }