# Hooks — rafay.sh

> Reusable React hooks from Abdul Rafay's shadcn registry, used in real projects. Clean, typed, and easy to drop in.

- Canonical page: https://rafay.sh/shenanigans/hooks
- Registry index: https://rafay.sh/r/registry.json

## Hooks

- [useConfirm](https://rafay.sh/shenanigans/hooks/use-confirm.md): Shows a confirmation dialog and returns a promise that resolves when the user accepts or rejects. Perfect for delete or irreversible actions. — `npx shadcn@latest add https://rafay.sh/r/use-confirm.json`
- [useCopy](https://rafay.sh/shenanigans/hooks/use-copy.md): Copies text to the clipboard with optional toast and success/error states. Also includes a built-in, customizable CopyButton component. — `npx shadcn@latest add https://rafay.sh/r/use-copy.json`

## Elsewhere on this site

- [Home](https://rafay.sh/index.md)
- [Writing](https://rafay.sh/blogs.md)
- [Chunks](https://rafay.sh/chunks.md)
- [Projects](https://rafay.sh/projects.md)
- [Fragments](https://rafay.sh/fragments.md)
- [Terminal](https://rafay.sh/terminal.md)
- [Guestbook](https://rafay.sh/guestbook.md)
- [Stats](https://rafay.sh/stats.md)
- [For agents](https://rafay.sh/for-agents.md)
- [Agent index (llms.txt)](https://rafay.sh/llms.txt)
- [Sitemap](https://rafay.sh/sitemap.xml)
