UNPKG

@clayui/shared

Version:
18 lines (17 loc) 524 B
/** * SPDX-FileCopyrightText: © 2022 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ /// <reference types="react" /> declare type PointerType = 'mouse' | 'pen' | 'touch'; declare type Event = { type: string; target: HTMLElement; pointerType: PointerType; }; declare type Props = { disabled?: boolean; onHover: (event: Event) => void; }; export declare function useHover<T extends HTMLElement>({ disabled, onHover }: Props): import("react").DOMAttributes<T>; export {};