Who someone is, on hover or focus of their face or name.
Every shadcn style · one file
v2.1 · Updated Oct 21pnpm dlx shadcn@latest add https://notchset.dev/r/person-card.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/person-card.jsonFree, no account or key. One command for every shadcn style. With the @notchset registry added, @notchset/<name> works too.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
pnpm add @base-ui/react@^1The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Import it and pass your content. The props that matter most are listed next.
"use client";
import { Avatar } from "@/components/ui/notchset/avatar";
import { PersonCard } from "@/components/ui/notchset/person-card";
const PEOPLE = [
{ name: "Maya Lindqvist", role: "Engineering lead", line: "Platform", open: 16, late: 2, time: "10:40" },
{ name: "Ruth Adeyemi", role: "Product designer", line: "Product", open: 7, late: 0, time: "09:40" },
{ name: "Priya Raman", role: "Data analyst", line: "Invited, hasn’t joined yet", open: 0, late: 0, time: "14:10" },
];
export default function PersonCardDemo() {
return (
<div className="flex flex-col gap-3">
{PEOPLE.map((p) => (
<div key={p.name} className="flex items-center gap-2.5 text-[length:var(--ns-text-small)] text-[var(--ns-ink-2)]">
<PersonCard name={p.name} role={p.role} line={p.line} href="#" facts={[["Open", p.open], ["Overdue", p.late], ["Local time", p.time]]}>
<Avatar name={p.name} size={24} />
<span className="font-[number:var(--ns-weight-medium)] text-[var(--ns-ink)]">{p.name}</span>
</PersonCard>
· {p.role}
</div>
))}
<span className="text-[length:var(--ns-text-meta)] text-[var(--ns-ink-3)]">Hover or focus a name; a touch opens their page.</span>
</div>
);
}components/ui/notchset/person-card.tsx
name–
stringRequired.
role–
stringhref–
stringwhere their page is; the trigger is this link
avatar–
React.ReactNodethe face on the card; defaults to their initials
line–
React.ReactNodea line under the role: a team, "Invited", "Deactivated"
facts[]
[string, React.ReactNode][]short facts, label then value, in a row of up to three
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v2.1.0 · 2026-10-21
New: a person's name, role, local time and load, on hover or focus.
v2.0.0 · 2026-10-13
Released with the Notchset system.
The same file, at work in a finished app. Open it live and find it on its pages.