Libraries · Application UI
useOutsideClick
Hook that fires a callback on pointer/touch interactions outside a ref. Adapted from Aceternity UI.
Installation
Features
1 example
Default.
Source and related
| File | Path |
|---|---|
| Component | registry/ui/use-outside-click.tsx |
| Default example | content/examples/use-outside-click/default.tsx |