hp-badge
Small toned status / count badge. Thin shell over <hp-cell variant="content"
size="sm"> with an optional tone overlay and the active
filled state. For larger or more prominent indicators reach for hp-cell directly.
Install
bun add @hexpunk/core lit import "@hexpunk/core"; Properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
tone | tone | HpBadgeTone | "neutral" | Semantic tone. Defaults to `neutral` (no tone overlay — uses the hp-cell content variant tokens). |
active | active | boolean | false | Fills the badge with the tone-container colour when set. Reads as "this state is in effect" — see hp-cell's `active`. |
Slots
| Slot | Description |
|---|---|
(default) | Badge label or count |
When to use
<hp-cell tone="..."> at size="md" or "lg".
No per-component entries in CHANGELOG.md yet.