UNPKG

@progress/kendo-react-common

Version:

React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package

29 lines (28 loc) 1.53 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { KendoPointer } from '../models/index.js'; import * as React from 'react'; type ElementPointer = { [P in keyof KendoPointer<any, any>]: (event: React.PointerEvent<any>) => void; }; /** * @hidden */ export declare const usePointer: <E extends HTMLElement | null, P extends KendoPointer<any, any>, R extends {}>(props: P, target: React.RefObject<R | null>, extend?: { onPointerDown?: ((args: React.PointerEvent<E>) => void) | undefined; onPointerMove?: ((args: React.PointerEvent<E>) => void) | undefined; onPointerUp?: ((args: React.PointerEvent<E>) => void) | undefined; onPointerCancel?: ((args: React.PointerEvent<E>) => void) | undefined; onGotPointerCapture?: ((args: React.PointerEvent<E>) => void) | undefined; onLostPointerCapture?: ((args: React.PointerEvent<E>) => void) | undefined; onPointerEnter?: ((args: React.PointerEvent<E>) => void) | undefined; onPointerOver?: ((args: React.PointerEvent<E>) => void) | undefined; onPointerLeave?: ((args: React.PointerEvent<E>) => void) | undefined; onPointerOut?: ((args: React.PointerEvent<E>) => void) | undefined; }) => ElementPointer; export {};