H
UI by hampton.io
ComponentsBlocksLayoutsBlog
Get Started
Menu
ComponentsBlocksLayoutsBlog
Get Started
Components
All Components(328)
Categories
Add to Cart ButtonAurora ButtonBorder Beam ButtonButtonCopy ButtonFloating Action ButtonFollow ButtonLike ButtonMagnetic ButtonRipple ButtonShimmer ButtonSocial Auth ButtonsSocial Login Buttons
All Components(328)
Categories
Add to Cart ButtonAurora ButtonBorder Beam ButtonButtonCopy ButtonFloating Action ButtonFollow ButtonLike ButtonMagnetic ButtonRipple ButtonShimmer ButtonSocial Auth ButtonsSocial Login Buttons
Back to Components
Buttons

Like Button

Toggleable heart button with count display and active state.

PropsUsage ExampleVariations

Dependencies

  • clsx
  • tailwind-merge

Files

  • components/ui/like-button.tsx

Installation

Using shadcn CLI

npx shadcn add like-button --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge

Related Buttons Components

Add to Cart Button

E-commerce button with loading spinner, success checkmark, and animated state transitions.

Aurora Button

An animated button with a flowing gradient effect that shifts between your primary and secondary colors. Perfect for calls-to-action.

Border Beam Button

A button with an animated beam that travels around the border for a premium call to action.

Button

A versatile button component with multiple variants including default, outline, fancy, ghost, and secondary styles.

Copy Button

Click to copy text with animated feedback and tooltip support.

Floating Action Button

Speed dial style floating action button with expandable quick actions.

H
UI by hampton.io

Beautiful shadcn/ui components, crafted weekly by the team at Hampton.io.

Library

  • Components
  • Blocks
  • Layouts
  • Blog

Resources

  • shadcn/ui
  • Tailwind CSS
  • Next.js

Hampton.io

  • About Us
  • Contact
  • Services

© 2026 Hampton.io. All rights reserved.

|

Open source under the MIT License

H
Made by hampton.io