Back to Components
Buttons
Like Button
Toggleable heart button with count display and active state.
Dependencies
- clsx
- tailwind-merge
Files
- components/ui/like-button.tsx
Installation
Using shadcn CLI
npx shadcn add like-button --url https://ui.hampton.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge