Follow Toggle
Follow Toggle: Social follow toggle — dark Follow pill becomes a quiet Following state with a user-check icon. Tap again to unfollow. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Follow Toggle
npx motion-ui-skill add follow-buttonComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Follow Toggle
Social follow toggle — dark Follow pill becomes a quiet Following state with a user-check icon. Tap again to unfollow.
Install
npx motion-ui-skill add follow-button
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { FollowButton } from "@/components/buttons/follow-button";
export function FollowButtonDemo() {
return (
<div className="flex items-center justify-center p-6">
<FollowButton />
</div>
);
}
API Reference
FollowButton
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |