Skip to main content

Badge

A small visual element used to display statuses, categories, or alerts quickly and clearly. Ideal for highlighting information like "New," "Error," or "Beta."

Base

DEFAULT
<span class="badge">DEFAULT</span>

Colors

Set the badge color using the is-{color} class.

info

To see the available colors, check the Colors section.

PrimaryInfoSuccessWarning
<div class="is-flex is-gap-3">
<span class="badge is-primary">Primary</span>
<span class="badge is-info">Info</span>
<span class="badge is-success">Success</span>
<span class="badge is-warning">Warning</span>
</div>

Tonal

Adds a tonal background to the badge using the is-tonal class.

tip

You can combine it with colors, for example: is-tonal is-primary, is-tonal is-warning, etc.

PrimaryInfoSuccessWarningError

Outlined

You can set the badge with borders and a white background using the is-outlined class.

PrimaryInfoSuccessWarningError

Icons

You can add icons to the button using the <iconify-icon> component.

tip

For more information on how to use icons, check the Icons section.

Primary Info Error

Sizes

You can set the badge size using the is-md and is-lg classes.

PrimaryInfo