New to Kendo UI for Vue? Start a free 30-day trial

Vue Badge Rendering

Updated on Nov 26, 2026

A badge in the Kendo UI for Vue suite can be defined using two approaches:

  • The Badge component
  • The BadgeContainer component

Both approaches are valid. Choose the one that suits your preference or the complexity of your scenario.

Using the Vue Badge Component

Place the Badge after the DOM element to which it should be attached. Wrap the Badge and the target element in a parent div or span, as shown below:

jsx
<span class="badge">
  <SvgIcon :icon="vimeoIcon" :size="'xlarge'" style="color: #b3d062" />
  <Badge> 77 </Badge>
</span>

Define the badge class as follows to position the Badge correctly:

jsx
.badge {
  position: relative;
  overflow: visible;
}

Using the Vue BadgeContainer Component

The BadgeContainer uses a slot template to define its content. Pass the badge configuration directly to the BadgeContainer, as shown below:

jsx
<BadgeContainer
  :content="'content'"
  :align="{
    vertical: 'bottom',
    horizontal: 'end',
  }"
  :theme-color="'tertiary'"
>
  <SvgIcon :icon="copyIcon" style="width: 36px; color: #4eb9ed" />
  <template #content> 11 </template>
</BadgeContainer>