Skip to Content
Kokonut UI

CD-18CardsNew, November 28, 2026

Account Card

A connected social account with its platform on the avatar, its followers, and two weeks of posts as tiny bars. Hover a bar to see that day.

Install with
lucide-react

IN USEThis component is used in Postrippl.

Usage

activity is posts per day, oldest first. Empty days show as faint dots, so a quiet stretch reads as calm. platform puts the network's mark on the avatar: x, bluesky, linkedin and threads get theirs, and any other name gets its initial. When the connection has died, set status="expired" and the activity line turns into a single red Reconnect button that calls onReconnect. actions goes on the right of the header, for a menu.

"use client";

import AccountCard from "@/components/kokonutui/account-card";

export function Accounts({ accounts }: { accounts: Account[] }) {
  return (
    <div className="grid gap-3 sm:grid-cols-2">
      {accounts.map((account) => (
        <AccountCard
          activity={account.postsPerDay}
          avatarUrl={account.avatar}
          followers={account.followers}
          handle={account.handle}
          key={account.id}
          onReconnect={() => reconnect(account.id)}
          platform={account.platform}
          status={account.expired ? "expired" : "active"}
        />
      ))}
    </div>
  );
}

PROOnboarding Checklist and more like it are in Kokonut UI Pro

Installation

Account Card is a free, open-source React component in the Kokonut UI Cards collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/account-card.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/account-card

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/account-card.tsx.

npm install lucide-react

Props

handle
stringDefault DEMO.handle

The handle, e.g. "@northwind". Bluesky's ".bsky.social" is dropped.

platform
stringDefault DEMO.platform

"x", "bluesky", "linkedin" and "threads" get their marks; others get an initial.

platformName
string

Shown next to the platform, e.g. "Bluesky". Defaults to a known name.

avatarUrl
string
followers
numberDefault DEMO.followers
activity
number[]Default DEMO.activity

Posts per day, oldest first, usually the last 14 days.

status
"active" | "expired"Default "active"

A dead connection swaps the activity line for Reconnect.

onReconnect
() => void
actions
ReactNode

A menu or buttons on the right of the header.

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.