Skip to content

Dot badge

A status chip led by a 6px tone dot, so colour is never the only cue.

Tones

OperationalDegradedOutagePaused

With a title

  • APIOperational
  • WebhooksDegraded
  • ExportsPaused

Installation

npx shadcn@latest add @khaeli/dot-badge

Install @khaeli/foundation first: this item's styling lives in its tokens and [data-slot] rules.

Installs with

Accessible name

  • The dot is hidden from assistive technology with aria-hidden: the text is the state, and the colour only repeats it.
  • title is a tooltip a mouse shows on hover. A keyboard or a touch screen never shows it, so keep anything a person needs in the text.

Registry JSON

The item as the shadcn CLI reads it, with every file it ships: https://ui.khaeli.com/r/dot-badge.json