UNPKG
@vchatcloud/react-ui-kit
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
VChatCloud UI Kit for react integration
www.vchatcloud.com
@vchatcloud/react-ui-kit
/
dist
/
hooks
/
useOutsideClick.d.ts
8 lines
(7 loc)
•
256 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
RefObject
}
from
'react'
;
declare
const
useOutsideClick
:
(
{ popup, ref, refContainButton, }: { popup:
boolean
; ref: RefObject<HTMLElement>; refContainButton?:
boolean
; },
callback
?: () =>
void
) =>
void
;
export
default
useOutsideClick;