StatusBadge

Fiddle
System state: live, publishing, error… Dot carries the hue, the label carries the meaning.
LivePublishingError

Usage

The import, then a use to start from. Both copy as they are.

Import
import { StatusBadge } from "@/components/ui/StatusBadge";
Example
<StatusBadge status="live" /><StatusBadge status="publishing" size="sm" /><StatusBadge status="failed" />

When to use

Use it for

  • System state from the backend: a site's publish status, a token's state, a pull request.
  • Pass the status and nothing else: the badge owns the dot, the color and the words.
  • Statuses include live, publishing, running, successful, failed, error, unpublished, paused, revoked, the pull-request states open, merged, closed and draft, and an SDK's: queued, generating and generated while the Fern CLI makes it, then release-pending and the -version states of a generation-log row, not-published for an SDK that went nowhere yet, and breaking for a method change in a version comparison.
  • size="sm" in dense rows and tables.

Avoid

  • A Badge with a hand-picked color for a state StatusBadge already has.
  • A label of your own. If a state is missing, add it to StatusBadge so every screen gets it.

Accessibility

Checks

  • The label carries the meaning; the dot only reinforces it.

API

Read from each component's stories, the same source as COMPONENTS.md, and kept in step by check:design-system.

StatusBadge

Its stories don't declare argTypes, so no props are listed. The variants show its states.
VariantsLiveSuccessfulPublishingRunningErrorFailedUnpublishedLoadingUncommittedPreviewActiveRevokedPausedPublishedReleasePendingPublishedVersionPendingVersionUnpublishedVersionNotPublishedBreakingOpenClosedMergedDraftSmallUnknownChangeRequestStagesAll

Keep going

Color
Semantically named colors and a set of ramps for the full palette. Optimized for light and dark.