Componentdata0.98 KB gzipZero dependencies
FollowerList
Rows with avatars, names, handles, and Follow buttons that morph between states.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add follower-listOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { FollowerList } from "@/components/ui/follower-list"; <FollowerList followers={followers} />Source code
follower-list.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxfollower-list.tsx121 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface Follower { id: string; avatar: string; name: string; handle: string; isFollowing?: boolean;} export interface FollowerListProps extends React.HTMLAttributes<HTMLDivElement> { followers?: Follower[]; onToggleFollow?: (id: string, following: boolean) => void;} Props
| Prop | Type | Description |
|---|---|---|
| followers | Follower[] | Configures followers. (Default: []) |
| onToggleFollow | (id: string, following: boolean) => void | Callback invoked on toggle follow. |