@shadcnhooks
Hooks/utilities · MIT · data updated 2026-07-28
A growing TypeScript-first React hooks collection distributed through the shadcn registry, built for React 19+ with SSR compatibility and zero or minimal external dependencies. Each hook is individually installable (e.g., npx shadcn@latest add @shadcnhooks/use-counter). Documented hooks include use-counter, use-boolean, and others following the shadcn copy-paste philosophy. Tree-shakeable; no lock-in. Use for: adding well-tested, typed utility hooks — state management, toggles, timers, event listeners — directly into a project as owned source files rather than a package dependency.
Install
npx shadcn@latest add https://shadcn-hooks.com/r/registry.jsonHealth
Components (58)
Preview
Live sandbox previews render component source client-side. Where a component can’t be rendered standalone, sh4dcn falls back to its source and install command.
@shadcnhooks · is-browser
npx shadcn@latest add https://shadcn-hooks.com/r/is-browser.jsonView source