Data display / Badge

Data display

Badge

Status badges with a dot — success, warning, danger, accent, neutral — plus a notification count, which is a quantity rather than a state.

import { EcoBadge } from "vue-ecosphere"

Status

Status colour travels only through badge and score, and never alone: every badge carries its own text label, so the state survives for anyone who cannot separate the hues.

ResolvedAwaiting reviewFailedScheduledArchived

Notification count

Filled rather than tinted, no dot, tabular figures. Under two digits it is a 19px circle; past that it grows into a pill. Danger by default; accent or neutral when the count is informational.

3121289

API

NameTypeDefaultDescription
tone"success" | "warning" | "danger" | "accent" | "neutral""neutral"Status colour. Every tone but neutral shows a dot. On a count, only accent and neutral apply.
labelstring—Text when you don't use the default slot. A status badge always carries one.
countnumber | string—Render a notification count (badge--notification) instead of a status.
maxnumber—Cap the count: 99 shows “99+”.