# use mouse position ref, 21st-danielpetho--fancy-components component by dan…

A custom React hook that tracks mouse/touch position using a ref to avoid re-renders. Returns a mutable ref object containing the current position relative to

> Pagina: https://ui.eneawork.it/comp/21st-danielpetho--fancy-components/use-mouse-position-ref
> Markdown: https://ui.eneawork.it/comp/21st-danielpetho--fancy-components/use-mouse-position-ref.md

- Libreria: [21st-danielpetho--fancy-components](/components/lib/21st-danielpetho--fancy-components)
- Pagina HTML: https://ui.eneawork.it/comp/21st-danielpetho--fancy-components/use-mouse-position-ref

## Install

```bash
npx shadcn@latest add "https://ui.eneawork.it/api/registry/21st-danielpetho--fancy-components/use-mouse-position-ref.json?token=YOUR_TOKEN"
```

The registry endpoints are token-gated (create a free account in the app, then copy the registry token). The raw source is also readable at `/api/registry/<library>/<name>.json`.
