# ProspectAvatar

> A prospect's photo, or a gradient disc hashed from their name, with an optional unread halo.

## Facts

- **Product**: Max
- **Family**: Data display
- **Global**: `window.DigitalCrew.ProspectAvatar`
- **Source**: `max-agent: src/features/unibox/ui/components/prospect-avatar.tsx`
- **Import in the app**: `import { ProspectAvatar } from "@/features/unibox/ui/components/prospect-avatar";`
- **Live preview**: /design/components/prospect-avatar/preview.html
- **Page**: /design/components/prospect-avatar

## Guidelines

**Use it for** prospects and contacts in Unibox, lists and deal cards.

**What you provide**: `name`, `photoUrl` (optional), `size` (`sm` 36px, `md` 44px, `lg` 64px, `xl` 80px) and `unread`.

**Anatomy**: a 1px `border` ring at 60% with `shadow-sm`; without a photo, initials on a 135° gradient chosen from six pairs (ember, twilight, lagoon, moss, orchid, dune), so the same name always gets the same colour. Unread adds a 2px `primary` halo at 60% that pulses every 2.6s (static under reduced motion).

## API

```ts
declare const SIZES: {
    readonly sm: "size-9 text-xs";
    readonly md: "size-11 text-sm";
    readonly lg: "size-16 text-lg";
    readonly xl: "size-20 text-xl";
};
interface ProspectAvatarProps {
    name: string;
    photoUrl?: string | null;
    size?: keyof typeof SIZES;
    /** Show the breathing unread ring around the avatar. */
    unread?: boolean;
    className?: string;
}
export declare function ProspectAvatar({ name, photoUrl, size, unread, className, }: ProspectAvatarProps): JSX.Element;
```

## Example

```html
<div id="root" class="p-6"></div>
<script>
(function () {
  var h = React.createElement, DC = window.DigitalCrew, I = DC.Icons;
function App() {
  return h("div", { className: "flex items-end gap-5" },
    h(DC.ProspectAvatar, { name: "Claire Dubois", size: "sm" }),
    h(DC.ProspectAvatar, { name: "Marcus Webb", size: "md", unread: true }),
    h(DC.ProspectAvatar, { name: "Aiko Tanaka", size: "lg" }),
    h(DC.ProspectAvatar, { name: "Lena Fischer", size: "xl" }),
    h(DC.ProspectAvatar, { name: "Omar Haddad", size: "md" }),
    h(DC.ProspectAvatar, { name: "Sofia Almeida", size: "md" }));
}
  ReactDOM.createRoot(document.getElementById("root")).render(h(DC.TooltipProvider, { delayDuration: 80 }, h(App)));
})();
</script>
```

## More in Data display

- [AgentFace](/design/components/agent-face.md): A Digital Worker's face: its approved portrait, or its initials on its accent tile.
- [AnimateDigits](/design/components/animate-digits.md): A number whose digits spring in and out as it changes (motion), direction following the change.
- [Avatar](/design/components/avatar.md): A round image with an initials fallback (Radix Avatar), 32px by default.
- [CampaignStatusBadge](/design/components/campaign-status-badge.md): The campaign lifecycle pill: Draft, Active, Paused, Stopped, Completed, Archived.
- [ChannelBadge](/design/components/channel-badge.md): Marks which channel a conversation or step runs on: email (amber), LinkedIn (sky), WhatsApp (emerald).
- [EmailVerificationBadge](/design/components/email-verification-badge.md): The deliverability verdict for an email address, with an icon and an optional score.
- [HeroMetric](/design/components/hero-metric.md): One big number with its previous-period comparison, a trend pill and a pacing bar.
- [KpiCard](/design/components/kpi-card.md): A KPI tile — label, value, trend — and `KpiSection`, the glass panel that groups them.
- [MaxIconSet](/design/components/max-icon-set.md): Max's own SVG icons, exported as `DC.MaxIcons`: integration and channel logos, message delivery states, and the appearance-picker tiles.
- [MetricTile](/design/components/metric-tile.md): A compact glass tile for a scored metric: label, value toned by score band, hint.
- [Snippet](/design/components/snippet.md): A monospace command block with a copy button whose icon turns into a check after copying.
- [TimeLens](/design/components/time-lens.md): Max's agenda: hour marks, ticks and tasks in one scrolling column, read through a fixed lens that shows the time under it.
- [WorldGlobe](/design/components/world-globe.md): An interactive d3-geo globe on canvas with avatar markers that merge into heat-coloured count bubbles.
