ProfileCard
A person / contact card: avatar, name, role, metadata and actions.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen 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
| Prop | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
role | React.ReactNode | — | |
avatar | string | — | Avatar image URL; falls back to initials from name. |
meta | React.ReactNode[] | — | |
actions | React.ReactNode | — | |
layout | "stack" | "row" | — | "stack" (centered) or "row". |
className | string | — |