Updated
Presence Dot
ProCustomize
Online
Size56px
Installation
ProPresence Dot is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/presence-dot
Loading your installation…
Usage
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={…}/>Where to use Presence Dot
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 and Team Roster
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
Support agent queues
A dot that changes in place shows who can take the next ticket without reloading the list.
Pairs with Avatar Stack
Props
PresenceAvatar- name
- Type string
- "Maya Chen"
- Name beside the avatar.
- defaultStatus
- Type "online" | "away" | "busy" | "offline"
- "online"
- Status on mount when uncontrolled.
- editable
- Type boolean
- true
- Let people change the status from the dot: press it to pick, or use the arrow keys.
- size
- Type number
- 56
- Avatar diameter.
- src
- Type string
- –
- Avatar image URL.
- status / onStatusChange
- Type "online" | "away" | "busy" | "offline"
- –
- Controlled status.
- colors
- Type Partial<Record<Presence, string>>
- –
- Colour per status. Defaults to green, amber, red and grey.
- className
- Type string
- –
- Classes for the wrapper.
- PresenceDot
- Type component
- –
- The dot alone (status, size, colors, ringColor) to pin to your own avatars.