# use mouse vector, 21st-danielpetho--fancy-components component by danielpetho

A custom React hook that tracks mouse/touch movement and calculates motion vectors. Provides both position coordinates and movement vectors relative to a cont

> Pagina: https://ui.eneawork.it/comp/21st-danielpetho--fancy-components/use-mouse-vector
> Markdown: https://ui.eneawork.it/comp/21st-danielpetho--fancy-components/use-mouse-vector.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-vector

## Install

```bash
npx shadcn@latest add "https://ui.eneawork.it/api/registry/21st-danielpetho--fancy-components/use-mouse-vector.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`.
