Badge

A compact status pill whose text carries the meaning alongside its color.

Each status carries text alongside its color.

Open in new tab

Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.

Installation

bash
suprnova live:add badge

Usage

html
{% import "suprnova-ui/badge/badge.html" as badge %}
{% call badge::badge("Published", variant="success") %}{% endcall %}

Keyboard and accessibility

suprnova.badge - a status pill that always carries text (DATA-002). The variant colors the pill; the text names the status, so the badge never depends on color alone.

API reference

badge

ParameterDefaultDescription
textRequiredThe visible status text; meaning must not depend on color alone.
variant"neutral"The status color: neutral, success, warning, error or info.