Skip to content
ghostui

Badge

A compact label for status, count, or metadata.

Preview

The default subtle badge identifies an item without competing with nearby controls.

DraftReady

Installation

Install the local ghost-kit source bundle while the registry runs at localhost:3110. It contains this component and its source dependencies. Prepare the local registry first so token dependencies also resolve locally.

Install

Basic usage

Structure

Examples

Subtle

The borderless, filled style is the default. Use it for most labels.

DraftReady

Outline

Use a transparent surface with a visible border when the label needs more definition.

ArchivedReadyPendingFailedInfo

Status tones

Success, warning, error, and info use the same subtle or outline treatment in their own color scale. Neutral is the default tone. Keep the status clear in the text.

NeutralSuccessWarningErrorInfo

Sizes

Use small for compact metadata and medium for the usual label. The preview shows small first, then medium.

SmallMedium

Decorative dot

Use a dot as a secondary visual cue. The visible words still carry the meaning.

ReadyPendingFailedInfo

Decorative icon

Use a recognizable icon with text. If icon and dot are both set, the icon takes precedence.

SavedSynced

API reference