# Presence Dot (Pro)

> An avatar status dot that morphs between online, away, busy and offline, and opens from the dot itself into a tiny picker that previews each status as you hover.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › State Changes |
| Live preview | https://uibrik.com/components/presence-dot |
| Writes | 1 file into `components/uibrik/presence-dot/` |
| Packages | `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 22, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/presence-dot
```

No license yet? Tell the user Presence Dot is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=presence-dot#pricing. The closest free options are under Same shelf below.

## Render it

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

```tsx
import { PresenceAvatar } from "@/components/uibrik/presence-dot/presence-dot";

<PresenceAvatar
  name="Maya Chen"
  defaultStatus="online"
  editable
  size={56}
  src="/registry/presence-dot/maya.webp"
  // status="online"
  // onStatusChange="online"
  // colors={…}
  // PresenceDot={…}
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `name` | `string` | `"Maya Chen"` | Name beside the avatar. |
| `defaultStatus` | `"online" \| "away" \| "busy" \| "offline"` | `"online"` | Status on mount when uncontrolled. |
| `editable` | `boolean` | `true` | Let people change the status from the dot: press it to pick, or use the arrow keys. |
| `size` | `number` | `56` | Avatar diameter. |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `src` | `string` |  | Avatar image URL. |
| `status / onStatusChange` | `"online" \| "away" \| "busy" \| "offline"` |  | Controlled status. |
| `colors` | `Partial<Record<Presence, string>>` |  | Colour per status. Defaults to green, amber, red and grey. |
| `className` | `string` |  | Classes for the wrapper. |
| `PresenceDot` | `component` |  | The dot alone (status, size, colors, ringColor) to pin to your own avatars. |

## Where it fits

- **Team chat and workspaces**: Each status has its own shape as well as colour, so it reads at a glance and for colour-blind users. Pairs with [Live Cursors](https://uibrik.com/components/live-cursors.md) (Pro) and [Team Roster](https://uibrik.com/components/team-roster.md) (Pro).
- **Account menus**: The dot itself opens into the four statuses and previews each one as you hover, so setting availability takes one press. Pairs with [Dropdown Menu](https://uibrik.com/components/dropdown-menu.md).
- **Support agent queues**: A dot that changes in place shows who can take the next ticket without reloading the list. Pairs with [Avatar Stack](https://uibrik.com/components/avatar-stack.md).

## Same shelf: State Changes

- [Read Receipts](https://uibrik.com/components/read-receipts.md): A message bubble whose clock turns into one tick, then two, then fills with colour once the message is read.
- [Sync Button](https://uibrik.com/components/sync-button.md): A sync button whose arrows spin while it works, coast to a stop instead of halting, draw a check, and keep "Synced 3 min ago" up to date.
- [Typing Dots](https://uibrik.com/components/typing-dots.md): A typing indicator whose bubble grows from three dots into the message itself, so the reply lands where the dots were.
- [Disabled Reason](https://uibrik.com/components/disabled-reason.md): A disabled button that answers a press: it shakes, says why it's blocked, and moves focus to the field that needs fixing.
- [Download Button](https://uibrik.com/components/download-button.md): A download button whose arrow drops into its tray, fills with progress as the percentage counts up, then draws a check and offers Open.
- [Follow Button](https://uibrik.com/components/follow-button.md): A follow button whose plus folds into a check as it turns to Following, and warns with Unfollow on hover before you undo it.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/presence-dot/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
