Example Component Library
Broken components Broken button Broken quote
Demo Components
Cards (No Flattening)
Layouts
Hero
Info card
Slotted card
Product Pricing Card Dashboard Grid Showcase
Rich button Svg icon User card
Button
Destructive Action Disabled State Dark Theme Preview Dialog Action Layout
Badge
System Status Indicator Dynamic Unread Counter
Alert
Security Outage Alert Dismissible Notification Shell
Quote oneup
Hero Editorial Callout
Promoted App Demo Demo
Demo Extra Button
Demo Nav
Cards
Info card
Elements
Quote oneup Badge
Icon
Accessibility
Generic
Divider Tooltip
Action button Design guidelines
Demo Single Chip Pill
Gallery / Demo Components / Badge Gallery / / Badge
Demo Components /
Documentation

Description

A small badge label, useful for status indicators or counts.

The simplest structural pattern: a single file with an inline template.

Note it's specifically only available in the "default" theme.

Example usage::

{% badge "New" %}

Usage

Minimal example

{% badge "New" %}

Bigger example

{% badge
  "Unread Messages"
  theme="danger"
  classes="font-bold"
%}

Qualified tag usage

{% ui__badge "New" %}

Parameters

Name Type Required Default Choices Description
text str Yes — — The badge text.
Sandbox
{% badge "New" %}
<span class='badge '>Unread Messages</span>