A square ID card that turns over to someone's details
pnpm dlx shadcn@latest add @notchset-pro/avatar-cardA square ID card that turns over to who someone is.
Every shadcn style · one file
Import it and pass your content. The props that matter most are listed next.
"use client";
import { AvatarCard } from "@/components/ui/notchset/avatar-card";
/*
* One person's ID card, resting on its front: Priya's photo, her name and designation, and a turned corner at its foot.
* Point at it or focus it and it leans toward its turn; press it (or Enter, Space) and it turns over to her team and
* place, three figures and her address; press again and it turns back. Priya is from the cast.
*/
const PRIYA = {
name: "Priya Raman",
role: "Account executive",
src: "https://notchset.dev/media/people/person-05.webp",
line: "Sales · Stockholm",
facts: [["Open", "12"], ["Due today", "3"], ["Local", "14:20"]] as [string, string][],
email: "priya@notchset.com",
};
export default function AvatarCardDemo() {
const p = PRIYA;
return (
<div className="flex w-full justify-center px-4 py-10">
<AvatarCard name={p.name} role={p.role} src={p.src} line={p.line} facts={p.facts} email={p.email} />
</div>
);
}components/ui/notchset/avatar-card.tsx
This component is included with Pro.
Try the live preview above. Get Pro to install the source.
LevelAtom: uses no other piece.
Made ofNothing else from the library: the foundation alone.
Needs your registry key. Every components.json style gets the same files.
Works with React 18.3 or 19 on Tailwind CSS v4, in any shadcn project. What's tested
The 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.
name–
stringthe person's name, on both faces
role–
stringtheir designation ("Account executive"), under the name
src–
stringtheir photo, square or portrait; without one the front shows their initials
line–
stringteam and place on the back ("Sales · Stockholm")
facts[]
readonly (readonly [string, React.ReactNode])[]two or three figures on the back, label then value
email–
stringan address on the back's foot
flipped–
booleancontrolled: the back is showing
defaultFlippedfalse
booleanuncontrolled: start on the back
onFlippedChange–
(flipped: boolean) => voidflipLabel"Show details"
stringwhat a screen reader hears before the face showing ("Show details"); aria-pressed says whether the back is showing
Three usesa team page's people · an account's owner on its record · a directory's person, in a grid
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)One payment, lifetime.
v2.0.0 · 2026-10-13
Released with the Notchset system.