Back to components
Components

Icon text badge

Badges that combine icons and text to convey status, labels, or contextual meaning in a compact format.

Component

Badge

Props

Props Default Type
colorColorAccent.NEUTRALColorAccent
textBadgestring
iconmdi:helpstring

Usage

color

Applies a color to the badge. It uses the ColorAccent enum.

 <template>
    <Badge :color="ColorAccent.NEUTRAL" />
</template>
 
  • Type: ColorAccent
  • Default: ColorAccent.NEUTRAL

Options

Value Description
NEUTRAL

Neutral

SUCCESS

Success

WARNING

Warning

DANGER

Danger

INFO

Info

PRIMARY_BRAND

Primary Brand

SECONDARY_BRAND

Secondary Brand

text

The text displayed on the badge.

 <template>
    <Badge text="I am a badge" />
</template>
 
  • Type: string
  • Default: 'Badge'

icon

The icon displayed on the badge.

 <template>
    <Badge :showIcon="true" icon="mdi:help" />
</template>
 
  • Type: string
  • Default: 'mdi:help'