Shadcn Hooks

Installation

How to install dependencies and structure your app.

Install Hooks

CLI

Use the shadcn CLI to add hooks to your project. Dependencies are resolved automatically.

npx shadcn@latest add @shadcnhooks/use-boolean

shadcn/installation

npm Package

Or install all hooks at once via npm:

npm install shadcn-hooks

Then import directly:

import { useBoolean, useCounter, useClipboard } from "shadcn-hooks";

Last updated on

On this page