StealThis .dev

Status Indicator

Online/offline/idle/busy status dots with pulse animation, badge variants, and text labels.

Open in Lab
css
Targets: HTML

Code

Status Indicator

Presence and availability indicators for user avatars, system health dashboards, and service status pages. Three display formats — dot, badge, and avatar-with-dot — all CSS-only.

Status values

StatusColorMeaning
OnlineGreenActive, connected, available
IdleAmberAway, inactive, low-priority
BusyRedDo not disturb, in a meeting
OfflineGreyDisconnected, unavailable

Variants

  • Dot — standalone colored circle, optionally animated with a ring pulse
  • Badge — pill-shaped chip with dot + label, for inline use in lists/tables
  • Avatar dot — dot overlaid on an avatar image/initials at the corner

Animation

The online dot has a CSS @keyframes pulse ring — a fading scale-up of a ring element. Use prefers-reduced-motion media query to disable if needed.

Accessibility

  • Status text is visually present as a label (not hidden)
  • Color is never the sole differentiator — each status has a distinct label
  • Use aria-label on the dot element when the label is elsewhere