Display
Badge <pm-badge>
Small label for status, counts or categories.
Variants
Set with the variant attribute.
variant="soft"variant="solid"variant="outline"Sizes
Set with the size attribute; controls keep touch-sized targets on phones.
size="md"size="lg"Tones
Set tone on the element, or data-tone on any ancestor to tone a whole area.
tone="accent"tone="secondary"tone="neutral"tone="success"tone="warning"tone="danger"tone="info"Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
variant | 'soft' | 'solid' | 'outline' | — | Visual style. |
size | 'md' | 'lg' | — | Size: md or lg (md when not set). |
dot | boolean | — | Show a small status dot before the text. |
Also accepts the contextual attributes tone, surface, radius, density, motion, elevation. They are inherited from ancestors' data-* attributes.
Used in templates
Overview dashboardOrdersCustomer 360InboxAI assistantNotificationsProject boardBilling and invoicesUser profileAccount settingsPricing plansProduct pageChangelogComing soonNot found (404)Server error (500)