Badges
Badges are small inline labels for showing status, version numbers, or categories.
Block type
star-lite.badge
Fields
| Field | Type | Description |
|---|---|---|
| `text` | string | The badge label text |
| `variant` | string | `default`, `note`, `tip`, `caution`, `danger`, or `success` |
| `size` | string | `small`, `medium`, or `large` |
Usage
Add a badge block from the admin block picker or edit an existing one via the inline block editor. Badges render as pill-shaped labels inline with surrounding content.
Badges are most useful when added alongside headings or within card content to indicate status:
- Feature status: "New", "Beta", "Deprecated"
- Version labels: "v2.0", "Latest"
- Categories: "Guide", "Reference", "API"