UNPKG
@confi/conflux-react-ui-test-package
Version:
alpha (1.0.0-alpha.2)
latest (1.0.0-alpha.2)
1.0.0-alpha.2
Modern and minimalist React UI library.
conflux-react-ui.vercel.app
Conflux-Chain/react-ui
@confi/conflux-react-ui-test-package
/
dist
/
use-click-away
/
use-click-away.d.ts
4 lines
(3 loc)
•
185 B
TypeScript
View Raw
1
2
3
4
import
{
MutableRefObject
}
from
'react'
;
declare
const
useClickAway
:
(
ref
:
MutableRefObject
<
HTMLElement
|
null
>,
handler
: (event: Event) =>
void
) =>
void
;
export
default
useClickAway;