# Social Avatar

> An avatar that fans the person's social accounts out of itself along an arc, with real brand logos that copy the handle or open the profile on press.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Components › Avatars & Badges |
| Live preview | https://uibrik.com/components/social-avatar |
| Writes | 1 files into `components/uibrik/social-avatar/`, plus `components/uibrik/_brands/brands.ts` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 24, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/social-avatar.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/social-avatar`.

Can't run commands? https://uibrik.com/components/social-avatar/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { SocialAvatar } from "@/components/uibrik/social-avatar/social-avatar";

<SocialAvatar
  name="Daniel Reyes"
  links={[{ brand: …, handle: … }]}
  trigger="hover"
  size={72}
  spread={150}
  src="/registry/social-avatar/daniel.webp"
  subtitle="Product designer"
  onCopy={(link) => {}}
  // open={false}
  // onOpenChange={(open) => {}}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/social-avatar.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `trigger` | `"hover" \| "click"` | `"hover"` | What opens the marks. Touch always opens on tap. |
| `size` | `number` | `72` | Avatar diameter. |
| `spread` | `number` | `150` | Width of the arc the marks fan across. Widens on its own when marks would touch. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `name` (required) | `string` |  | Name under the avatar, and the initials when there's no photo. |
| `src` | `string` |  | Avatar image. |
| `subtitle` | `string` |  | Line under the name. |
| `links` (required) | `{ brand; handle; href? }[]` |  | Accounts in order. brand is a built-in key (x, github, linkedin, dribbble, instagram, youtube, threads, bluesky, discord) or your own { name, color, path }. Without href, a press copies the handle. |
| `open / onOpenChange` | `boolean / (open) => void` |  | Controlled open state. defaultOpen for uncontrolled. |
| `onCopy` | `(link) => void` |  | Called after a handle is copied. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Author and speaker bios**: One avatar holds every profile, so a byline stays a single face until someone wants to follow. Pairs with [Follow Button](https://uibrik.com/components/follow-button.md).
- **Team and about pages**: Each teammate's accounts open from their own photo, instead of a row of small icons under every card. Pairs with [Team Roster](https://uibrik.com/components/team-roster.md) (Pro).
- **Creator link pages**: Real logos in their own colours read at a glance, and a press copies the handle for apps that need it typed. Pairs with [Verified Badge](https://uibrik.com/components/verified-badge.md).

## Same shelf: Avatars & Badges

- [Status Badge](https://uibrik.com/components/status-badge.md): One status pill that moves between states: the tint eases to the new colour, the icon turns in, the label rolls and the pill glides to its new width.
- [Story Ring](https://uibrik.com/components/story-ring.md): An avatar in a segmented story ring that spins into dashes while a story loads, then drains the arc you opened to grey.
- [Tech Stack](https://uibrik.com/components/tech-stack.md): A row of real brand logos for the tools behind a product that open into tinted pills naming each one as neighbours slide aside.
- [Verified Badge](https://uibrik.com/components/verified-badge.md): A scalloped verified seal in blue, gold or grey that stamps in with a turn, draws its check and catches one pass of light.
- [Account Switcher](https://uibrik.com/components/account-switcher.md) (Pro): An account switcher whose trigger is a stack of faces: picking an account deals its face to the front while the name rolls over and a check lands.
- [Avatar Stack](https://uibrik.com/components/avatar-stack.md): Overlapping avatars that fan on hover and spring apart into a named list on a card growing out of the row.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/social-avatar/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
