Account Card
Bank account card: institution + masked number header, big balance with available amount, sync timestamp, and three recent inflow/outflow rows.
neo-corporate/ui/account-cardSource
import { ArrowDownLeft, ArrowUpRight, Landmark } from "lucide-react";
import { cn } from "@/lib/utils";
export interface AccountCardProps {
bank?: string;
name?: string;
last4?: string;
currency?: string;
balance?: number;
available?: number;
synced?: string;
recent?: { label: string; amount: number; date: string }[];
className?: string;
}
/** Bank account card: institution + masked number header, big balance with available amount, sync timestamp, and three recent inflow/outflow rows. */
export function AccountCard({
bank = "First Republic",
name = "Operating account",
last4 = "4821",
currency = "USD",
balance = 2_418_902.44,
available = 2_306_120.1,
synced = "Synced 4 min ago",
recent = [
{ label: "Northwind Traders", amount: 18400, date: "Today" },
{ label: "AWS · Invoice 88213", amount: -12400, date: "Yesterday" },
{ label: "Lumen Health", amount: 6250, date: "Sep 22" },
],
className,
}: AccountCardProps) {
const fmt = (n: number) => n.toLocaleString("en-US", { style: "currency", currency });
return (
<article className={cn("da-stroke w-full max-w-sm rounded-da-lg bg-da-surface text-da-surface-fg shadow-da-sm", className)}>
<header className="flex items-center gap-3 border-b border-da-border p-5">
<span aria-hidden className="grid size-10 place-items-center rounded-da-md bg-da-accent text-da-accent-fg">
<Landmark className="size-5" />
</span>
<div className="min-w-0 flex-1">
<h3 className="truncate font-semibold">{name}</h3>
<p className="text-sm text-da-muted-fg">
{bank} · <span className="font-da-mono">••{last4}</span>
</p>
</div>
<span className="rounded-da-sm bg-da-muted px-1.5 py-0.5 font-da-mono text-xs">{currency}</span>
</header>
<div className="p-5">
<p className="text-sm text-da-muted-fg">Current balance</p>
<p className="mt-1 font-da-mono text-3xl font-medium tracking-tight tabular-nums">{fmt(balance)}</p>
<p className="mt-1 text-sm text-da-muted-fg">
Available <span className="font-da-mono text-da-fg">{fmt(available)}</span>
</p>
<p className="mt-3 flex items-center gap-1.5 text-xs text-da-muted-fg">
<span aria-hidden className="size-1.5 rounded-full bg-da-success" />
{synced}
</p>
</div>
<ul className="divide-y divide-da-border border-t border-da-border" aria-label="Recent transactions">
{recent.map((r) => (
<li key={r.label} className="flex items-center gap-3 px-5 py-3 text-sm">
<span
aria-hidden
className={cn("grid size-7 place-items-center rounded-full", r.amount >= 0 ? "bg-da-success/12 text-da-success" : "bg-da-muted text-da-muted-fg")}
>
{r.amount >= 0 ? <ArrowDownLeft className="size-3.5" /> : <ArrowUpRight className="size-3.5" />}
</span>
<span className="min-w-0 flex-1">
<span className="block truncate font-medium">{r.label}</span>
<span className="block text-xs text-da-muted-fg">{r.date}</span>
</span>
<span className={cn("font-da-mono tabular-nums", r.amount >= 0 && "text-da-success")}>
{r.amount >= 0 ? "+" : "−"}
{fmt(Math.abs(r.amount))}
</span>
</li>
))}
</ul>
</article>
);
}
export default AccountCard;
modules/neo-corporate/ui/account-card/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| bank | string | — | Bank. |
| name | string | — | Name. |
| last4 | string | — | Last4. |
| currency | string | — | Currency. |
| balance | number | — | Balance. |
| available | number | — | Available. |
| synced | string | — | Synced. |
| recent | { label: string; amount: number; date: string }[] | — | Recent. |
| className | string | — | Extra classes on the root. |
Other card variants in Neo Corporate
Invoice Card
Invoice summary card: number + status, bill-to and dates grid, line items table with mono amounts, subtotal/tax/total, and download/send actions.
Kpi Card
Metric card: label, big mono value, colored delta vs. period and an area sparkline in the primary color along the bottom.
Plan Card
Billing/subscription card: current plan + price + renewal date, usage meters (progressbar semantics, turning amber at 80% and red at 95%), manage and upgrade actions.
Card in other art directions
Card
Composable card (Card, CardHeader, CardKicker, CardTitle, CardDescription, CardContent, CardFooter) with 5 solid tones, 3 hard-shadow depths and an interactive press-on-hover mode.
Profile Card
User/team member card: striped blue banner with status chip, overlapping yellow initials square, uppercase name and mono role, bio, ruled stat strip and a split action bar.
Release Card
Changelog entry card: yellow version/date column (top bar on mobile), uppercase title (optional link), summary and a list of changes tagged new / improved / fixed / breaking with fixed-width colored labels.
Stat Card
KPI card: mono label, icon square, giant value, green/red delta chip with arrow, and an outlined mini bar chart whose last bar is filled. Four solid tones.
Card
Composable frosted card (Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter) with frosted / tinted-gradient / solid variants, specular top edge and interactive lift.
Meeting Card
Meeting recap glass card: title, time / duration / platform meta, gradient participant stack with +N, AI summary panel, action items with checkboxes and owners, and a transcript link.
Profile Card
Teammate glass card: gradient cover, large initials avatar with presence dot, role and timezone, status pill, three stats, expertise tags and Message / Schedule actions.
Stat Ring Card
KPI glass card with a primary→accent gradient progress ring (SVG) showing the percentage, the value over its max and a caption; the ring draws in on mount.
Card
Composable hairline card (Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter) with default / raised / ghost variants and an interactive hover lift.
Incident Card
Incident summary card: severity chip, id and duration, linked title, service chips, a 4-step status progress bar, commander avatar, stacked responder avatars and update count.
Integration Card
Integration tile: logo/monogram, name, category, description, a Radix Switch to enable it, live status meta and a Configure link. Controlled or uncontrolled.
Metric Card
KPI card: muted label, big mono value, inline SVG sparkline with area fill and end dot, and a colored delta chip vs. the previous period (lowerIsBetter flips the colors).
Profile Card
Studio/person profile card in the Read.cv spirit: square gray portrait with initials, name, role and city in mono, availability dot in signal color, short bio and a list of links with ↗.
Project Card
Portfolio project card: neutral image frame that darkens slightly on hover with a “View case ↗” overlay, then a mono meta row (index, client, year) and the title with discipline tags.
Stat Card
Analytics stat: mono label, large display value, change in mono, and a row of thin vertical bars (last bar in ink, others gray) — no chart chrome.
Template Card
Template tile: a wireframe preview drawn with hairlines (nav, giant title, image grid) in a bordered frame, then name, author, category and usage count, with a “Use template” button revealed on hover/focus.
Action Card
Reduction action card: serif title, description, saving and cost figures, leaf-rated impact/effort, and an “Add to plan” pill that toggles to a sage “In your plan” state.
Article Card
Journal article card: an organic shaped “cover” (arch, blob or circle) with a hand-drawn leaf, category and read time, serif title that underlines on hover, excerpt; whole card is one link.
Metric Card
Emissions metric card: label, big serif value with mono unit, a change chip (down = good, sage; up = clay) and a human equivalence line with a small leaf.
Supplier Card
Supplier card: arch-shaped initials avatar, name, category and country, status pill, share of your footprint and a rounded data-completeness bar with a reminder action.
Profile Card
Rounded teammate card: pastel header band, big emoji avatar in a white circle, name, role, status pill, three stats in soft wells, skill pills and a “Say hi” button.
Project Card
Pastel project card: white emoji tile, name link covering the card, description, chunky rounded progress bar with percentage, tasks-left and due chips, member dots.
Stat Card
Friendly KPI tile: emoji in a white circle, change pill, label, big rounded number and a row of rounded mini bars (last one highlighted); five tones.
Task Card
Kanban task card: round done checkbox with bouncy tick, pastel label, title (struck when done), subtask progress, due chip that turns red when overdue, comment/attachment counts and avatar dots.