Skip to content

NbBadge is a compact label used to highlight status, category, or a short value. It supports multiple color variants, two sizes, and an optional dot indicator.

vue
<template>
  <NbBadge variant="blue">badge</NbBadge>
</template>

Variants ​

Use variant to communicate meaning through color.

Sizes ​

Dot mode ​

Add dot to prepend a status indicator before the label.

vue
<template>
  <NbBadge variant="green" dot>active</NbBadge>
</template>

Props ​

PropTypeDefaultDescription
variantNbBadgeVariant'grey'Color variant
sizeNbBadgeSize'md'Badge size ('sm' or 'md')
dotbooleanfalseShow a status dot before label

Variant values ​

ValueUse case
greyNeutral / default
blueInformational
greenSuccess / active
orangeWarning / pending
redError / danger
purpleSpecial / highlight
primaryBrand accent

Slots ​

SlotDescription
defaultBadge label text