Presence Dot

A small colored dot for user status: online, away, busy or offline, exposed with role status and an aria label. Overlay it on avatars in chat and team lists.

src/registry/ui/presence-dot.tsx/r/presence-dot.json

Installation#

bash
npx shadcn@latest add @minidev/presence-dot

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/presence-dot.json

Usage#

tsx
import { PresenceDot } from "@/components/ui/presence-dot"

export function Example() {
  return <PresenceDot />
}

API reference#

PresenceDot props
PropTypeDefault
statuskeyof typeof tones"offline"
classNamestring-
labelstring-
All alerts, toasts and empty states

Learn more