Components › Blocks
Profile card
A person at a glance: avatar and status, role, labelled details and contact actions.
Installation
npx plankui@latest add profile-cardUsage
import { ProfileCard } from "@/components/ui/profile-card";
<ProfileCard name="Lena Müller" role="Marketing manager" details={[{ label: "Location", value: "Berlin" }]} onView={open} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| name / role | string | Who they are. | |
| src / status | string, "online" | "away" | "offline" | Photo and presence. Initials show without a photo. | |
| details | { label: string; value: ReactNode }[] | [] | Labelled facts, as a description list. |
| onContact / onView | () => void | Show the add-contact and view-profile actions. |