shadcn hooks
npm install shadcn-hooks
A comprehensive React Hooks Collection built with Shadcn
- TypeScript First: All hooks are written in TypeScript with full type safety
- SSR Compatible: Hooks work seamlessly with server-side rendering
- Modern React: Built for React 19+ with latest patterns and optimizations
- Zero Dependencies: Most hooks have minimal or no external dependencies
- Tree Shakeable: Import only what you need
- Well Tested: Each hook is thoroughly tested and documented
- Tested: Each hook is thoroughly tested
Each hook can be installed individually using the shadcn CLI:
``bash`
pnpm install shadcn-hooks
`tsx
import { useCounter } from 'shadcn-hooks'
function Counter() {
const { count, increment, decrement, reset } = useCounter(0)
return (
Count: {count}
Visit shadcn-hooks.vercel.app for complete documentation, examples, and API references.
This collection is inspired by and builds upon the excellent work of:
- ahooks - Comprehensive React hooks library
- usehooks-ts - TypeScript-first hooks collection