aria-label or aria-labeledby.<dt-badge text="Label" /><dt-badge kind="count" text="1" />| Type | Kind: Label | Kind: Count | Usage |
|---|---|---|---|
| Default | Label | 1 | Default general purpose callout when no implicit semantic meaning applies. |
| Info | Label | 2 | Used to convey general information that isn't critical or requires action on the user's part. |
| Positive | Label | 3 | Accompanying a successful or otherwise positive action or message |
| Warning | Label | 4 | When a users attention is needed, or action may be required. |
| Critical | Label | 5 | To communicate conditions deemed critical, negative, or dangerous. For example, sensitive state (e.g. recording), must be resolved, or something has failed. |
| Bulletin | Label | 6 | Used to provide temporary feedback to specific items in the interface, like live activity, notifications, and unread counts. |
| Ai | Label | N/A | To call out Dialpad Ai features. |
<dt-badge kind="label" text="Label" /> <dt-badge type="info" kind="label" text="Label" /> <dt-badge type="positive" kind="label" text="Label" /> <dt-badge type="warning" kind="label" text="Label" /> <dt-badge type="critical" kind="label" text="Label" /> <dt-badge type="bulletin" kind="label" text="Label" /> <dt-badge type="ai" text="Label" kind="label" /> <dt-badge type="default" text="1" kind="count" /> <dt-badge type="info" text="2" kind="count" /> <dt-badge type="positive" text="3" kind="count" /> <dt-badge type="warning" text="4" kind="count" /> <dt-badge type="critical" text="5" kind="count" /> <dt-badge type="bulletin" text="6" kind="count" />
<dt-badge text="Label" outlined /> <dt-badge text="Label" type="info" outlined /> <dt-badge text="Label" type="positive" outlined /> <dt-badge text="Label" type="warning" outlined /> <dt-badge text="Label" type="critical" outlined /> <dt-badge text="1" kind="count" outlined /> <dt-badge text="1" type="info" kind="count" outlined /> <dt-badge text="1" type="positive" kind="count" outlined /> <dt-badge text="1" type="warning" kind="count" outlined /> <dt-badge text="1" type="critical" kind="count" outlined />
At the moment, only the bulletin type has a subtle variant.
<dt-badge text="Label" type="bulletin" subtle /> <dt-badge text="Label" type="bulletin" subtle outlined /> <dt-badge text="1" type="bulletin" subtle kind="count" /> <dt-badge text="1" type="bulletin" subtle kind="count" outlined />
<dt-badge type="default" text="Label" kind="label"> <template #startIcon="{ iconSize }"> <dt-icon-lightning-bolt :size="iconSize" /> </template> </dt-badge> <dt-badge type="default" text="Label" kind="label"> <template #endIcon="{ iconSize }"> <dt-icon-lightning-bolt :size="iconSize" /> </template> </dt-badge> <dt-badge type="default" text="Label" kind="label"> <template #startIcon="{ iconSize }"> <dt-icon-lightning-bolt :size="iconSize" /> </template> <template #endIcon="{ iconSize }"> <dt-icon-lightning-bolt :size="iconSize" /> </template> </dt-badge>
Decorative badges label and classify items for quick recognition.
<dt-badge text="Label" decoration="black-400" /> <dt-badge text="Label" decoration="black-500" /> <dt-badge text="Label" decoration="black-900" /> <dt-badge text="Label" decoration="red-200" /> ...
kind=count, nor with any type that is not default.import { DtBadge } from '@dialpad/dialtone-vue';
Name
|
Type
|
|---|---|
default | Slot for badge content, defaults to text prop |
endIcon | Slot for end icon, icon-size slot prop defaults to '200' |
startIcon | Slot for start icon, icon-size slot prop defaults to '200' |
leftIcon Deprecated | Use startIcon |
rightIcon Deprecated | Use endIcon |
Name
|
Default
|
Type
|
|---|---|---|
decoration |
"black-400"
|
"black-500"
|
"black-900"
|
"red-200"
|
"red-300"
|
"red-400"
|
"purple-200"
|
"purple-300"
|
"purple-400"
|
"purple-500"
|
"blue-200"
|
"blue-300"
|
"blue-400"
|
"green-300"
|
"green-400"
|
"green-500"
|
"gold-300"
|
"gold-400"
|
"gold-500"
|
"magenta-200"
|
"magenta-300"
|
"magenta-400"
Decoration for the badge. This can be only used with kind: label and type: default
with no left and right icons | |
endIconClass | '' | string|array|object Used to customize the end icon container |
iconSize | 200 |
"100"
|
"200"
|
"300"
|
"400"
|
"500"
|
"600"
|
"700"
|
"800"
The size of the left and right icons. |
kind | 'label' |
"label"
|
"count"
The kind of badge which determines the styling |
labelClass | '' | string|array|object Used to customize the label container |
outlined | false | boolean Outlines the badge with a border |
startIconClass | '' | string|array|object Used to customize the start icon container |
subtle | false | boolean Shows a subtle appearance for the badge
Currently only affects the badge when type is bulletin. |
text | '' | string Text for the badge content |
type | 'default' |
"default"
|
"info"
|
"positive"
|
"warning"
|
"critical"
|
"bulletin"
|
"ai"
Color for the badge background |
Class
|
Applies to
|
Description
|
|---|
Badge documentation last updated Friday, September 4, 2026
fix/popover-modal-zindex-scope