Status Dot
Online indicator with pinging halo.
<span class="relative flex h-3 w-3"> <span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"></span> <span class="relative inline-flex rounded-full h-3 w-3 bg-emerald-500"></span> </span>
Free to use in personal and commercial projects. No attribution required.
Variants
Same component, different looks. Preview each one live and copy the code you like.
Busy red
Red pulse for busy, offline, or error states in presence lists.
Away amber
Amber pulse for away or idle states in team chat sidebars.
Static gray
Motionless gray dot for offline states and reduced motion contexts.
About this status dot
The status dot is the smallest meaningful UI: a 12px circle that says online, offline, busy, or away. This one adds the ping halo for the 'active now' state, the pattern from chat apps and collaboration tools.
It is just two spans: the ping animation and the solid core. No text, no border, pure color semantics. Emerald means available, red means busy, gray means offline. These mappings are so universal they need no legend.
Status dots live on avatars, in user lists, and on dashboard headers. They are always paired with a name or avatar; a lone dot means nothing. Size them relative to what they annotate: 12px on 36px avatars.
In any list of people, the constant background question is who can respond right now? Text labels would clutter every row of the roster. The status dot compresses presence to twelve pixels: a glance down the chat list answers the question for every name at once. It is the cheapest possible solution to is anyone there, which is why every chat app ships some version of it.
A relative flex h-3 w-3 wrapper holds two spans. The halo is absolute with animate-ping bg-emerald-400 opacity-75, rippling outward on loop; the core is a solid bg-emerald-500 circle that persists. The pairing matters: the halo says active this instant, the core says here, and together they read faster than any label.
Anchor the dot to avatars with absolute -bottom-0 -right-0 and a ring-2 ring-white separator so it lifts off the photo instead of melting into it. Scale the dot to its avatar: h-2.5 w-2.5 on 32px avatars, h-3.5 w-3.5 on 48px and up. Extend the palette with amber for away and gray for offline, but never invent new meanings per screen; the mapping must be universal.
The mistake is a stale heartbeat. The tab has been open in the background for an hour, the dot still glows green, and a teammate messages someone who left long ago, then feels ignored when no reply comes. Presence must expire honestly: after a few minutes without activity, decay the dot to amber, then gray. A green dot is a promise; do not make promises the app cannot keep.
Where to use it
- ✓ Chat user lists
- ✓ Avatar overlays
- ✓ Dashboard headers
- ✓ Team presence
Customization tips
Position absolute on avatar corners with -bottom-0 -right-0. Add a white ring (ring-2 ring-white) to separate from the avatar. Colors: emerald online, red busy, amber away, gray offline.
Design notes
When to use
Use it to show presence on avatars, in chat user lists, and on dashboard headers. The 12px dot with a ping halo says active now at a glance. Stick to the universal mapping: emerald for online, red for busy, amber for away, gray for offline.
What to avoid
Do not float a status dot with no avatar or name nearby; a lone dot means nothing. Do not invent your own color meanings, since users already read emerald as available and gray as offline.
Accessibility
Color alone fails colorblind users, so pair the dot with a name and add screen-reader-only text like Online. The ping animation needs a reduced-motion alternative.
Frequently asked questions
What do status dot colors mean?
Emerald/green for online, red for busy/do-not-disturb, amber for away, gray for offline. These are universal; do not invent alternatives.
How do I place a dot on an avatar?
Wrap the avatar in a relative container, then absolutely position the dot at the bottom-right corner with a white ring for separation.
Should status dots pulse?
Pulse only for the active/live state. Static dots for online/away/offline. Constant pulsing on every dot is visual noise.
What size should a status dot be on an avatar?
About one quarter of the avatar's diameter works well: a 10 to 12px dot on a 40px avatar. Add a 2px ring in the page background color so the dot separates cleanly from the avatar image. This element positions the dot absolute at the avatar's bottom right with a white ring.
How do I show more than online and offline states?
Add amber for away or idle and red for busy or do not disturb, matching the conventions from chat apps. Keep the color set small: four states at most. Every color needs a text label or tooltip somewhere, because color alone does not explain itself to all users.
Should a status dot have a text label for screen readers?
Yes. A bare colored dot announces nothing useful. Give it an accessible name like 'Online' via aria-label on the dot or visually hidden text next to it. If the dot sits on an avatar, the avatar's alt text plus the status label together tell the full story.