UNPKG
@darius_rosendahl/react-use-hoverintent
Version:
latest (1.1.7)
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
React hook for hoverIntent
github.com/llldar/react-use-hoverintent
llldar/react-use-hoverintent
@darius_rosendahl/react-use-hoverintent
/
dist
/
index.d.ts
10 lines
(9 loc)
•
295 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/// <reference types="react" />
interface
optionType {
ref
?:
React
.
Ref
<
HTMLElement
|
null
>;
sensitivity
?:
number
;
interval
?:
number
;
timeout
?:
number
; }
export
declare
function
useHoverIntent
(
options
: optionType
): (
boolean
|
import
(
"react"
).
RefObject
<
HTMLElement
>)[];
export
{};