UNPKG
aurora-topu
Version:
latest (0.1.2)
0.1.2
0.1.1
React component library
github.com/topulikeweb/AuroraUI
topulikeweb/AuroraUI
aurora-topu
/
build
/
hooks
/
useClickOutside.d.ts
5 lines
(4 loc)
•
226 B
TypeScript
View Raw
1
2
3
4
5
import
{
RefObject
}
from
'react'
;
type
ClickOutsideHandler
=
(
event
:
MouseEvent
) =>
void
;
declare
function
useClickOutside
(
ref
:
RefObject
<
HTMLElement
>,
handler
:
ClickOutsideHandler
):
void
;
export
default
useClickOutside;