Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Follow button

A profile row with Follow; once followed it reads Following with a check, and hovering warns Unfollow in red before you click.

Category
Buttons
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/follow-button.json

2. Use it

Every prop is optional
app/page.tsx
import FollowButton from "@/components/follow-button";

export default function Page() {
  return <FollowButton />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A white profile card with initials in an amber circle, a name and a role, and a 40px pill button at the right.
  2. Follow is solid black with white text; Following is outlined with a check.
  3. Hovering or focusing Following turns it pale red with red Unfollow text.

How it behaves

  • It's a toggle with aria-pressed.
  • Hover and focus both show the Unfollow warning.
  • The button keeps the same width in every state, so the row doesn't jump.
  • Following is announced.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component