Skip to content

Commit

Permalink
docs(use-click-outside): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Saya authored and Saya committed Dec 27, 2024
1 parent 595b88b commit f3f85a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/use-click-outside.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import ExportMetaInfo from '../components/export-meta-info';

<ExportMetaInfo />

`useClickOutside` calls the callback you provide when a click event occurs outside the element associated with the returned ref
`useClickOutside` calls the callback you provide when a click event occurs outside the element associated with the returned ref callback

### Usage

```tsx copy
import { useClickOutside } from 'foxact/use-click-outside';

function Component() {
const ref = useClickOutside<HTMLDivHTML>(() => {
const ref = useClickOutside<HTMLDivElement>(() => {
console.log('clicked outside the div');
});
return <div ref={ref}>...</div>
Expand Down

0 comments on commit f3f85a3

Please sign in to comment.