Skip to main content

ProfileCard

A person / contact card: avatar, name, role, metadata and actions.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When to use​

A person / contact card: avatar, name, role, metadata and actions.

Accessibility​

When the whole card is actionable, expose a single accessible name and make it reachable with Tab + Enter. Decorative imagery uses empty alt.

Install and import​

npx shadcn@latest add @prism/profile-card
import { ProfileCard } from '@/components/prism/ProfileCard';

In a no-build prototype, read it from the bundle instead: const { ProfileCard } = window.PrismDesignSystem_39d121;

Props​

PropTypeRequiredDescription
namestringYes
roleReact.ReactNode—
avatarstring—Avatar image URL; falls back to initials from name.
metaReact.ReactNode[]—
actionsReact.ReactNode—
layout"stack" | "row"—"stack" (centered) or "row".
classNamestring—