Status Indicator
Online/offline/idle/busy status dots with pulse animation, badge variants, and text labels.
الكود
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
| Status | Color | Meaning |
|---|---|---|
| Online | Green | Active, connected, available |
| Idle | Amber | Away, inactive, low-priority |
| Busy | Red | Do not disturb, in a meeting |
| Offline | Grey | Disconnected, 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-labelon the dot element when the label is elsewhere