Fine-tune light, shadows, borders, neumorphic
Light and shadows
Borders
Neumorphic
Display

Badge <pm-badge>

Small label for status, counts or categories.

Full screen
New Online Beta v2.1

Props

<script type="module"> import '@prismora/css'; import '@prismora/elements/badge'; </script> <pm-badge>New</pm-badge> <pm-badge tone="success" dot>Online</pm-badge> <pm-badge tone="warning" variant="solid">Beta</pm-badge> <pm-badge tone="neutral" variant="outline">v2.1</pm-badge>

Variants

Set with the variant attribute.

New
variant="soft"
New
variant="solid"
New
variant="outline"

Sizes

Set with the size attribute; controls keep touch-sized targets on phones.

New
size="md"
New
size="lg"

Tones

Set tone on the element, or data-tone on any ancestor to tone a whole area.

New
tone="accent"
New
tone="secondary"
New
tone="neutral"
New
tone="success"
New
tone="warning"
New
tone="danger"
New
tone="info"

Attributes

AttributeTypeDefaultDescription
variant'soft' | 'solid' | 'outline'—Visual style.
size'md' | 'lg'—Size: md or lg (md when not set).
dotboolean—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)