Componentdata0.98 KB gzipZero dependencies

FollowerList

Rows with avatars, names, handles, and Follow buttons that morph between states.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add follower-list

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { FollowerList } from "@/components/ui/follower-list"; <FollowerList followers={followers} />

Source code

follower-list.tsx + 1 helper

Zero 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

PropTypeDescription
followersFollower[]Configures followers. (Default: [])
onToggleFollow(id: string, following: boolean) => voidCallback invoked on toggle follow.