StealThis .dev

Indicator

DaisyUI-style badge indicator — overlays a colored dot/badge on any element (button, avatar, card) for unread counts or status.

Open in Lab
css
Targets: HTML

Code

Indicator

Overlay badges and status dots positioned on top of any element.

Variants

  • Online dot — green pulse dot on an avatar for presence status
  • Count badge — numeric unread count overlaid on a button or icon
  • Status badge — colored label for state (live, error, beta)
  • Alert dot — small unread dot on an icon without a number

Positioning

The .indicator wrapper is position: relative. The .indicator__badge child uses position: absolute with configurable top/right offsets and translate(-50%, -50%) for precise corner anchoring.