Skip to main content

Badge

The Badge component superscripts or subscripts an avatar-like icon or text onto content to highlight information to a user or to just draw attention to a specific element. Content within the badge usually contains numbers or icons.

info

For more details about Vuetify’s usage of Badge component, click Badge page.
For more prop explanations, click Vuetify Badge API page.

Props

AttributeDescriptionTypeDefault
colorApplies specified color.stringprimary
borderedApplies a 2px by default and 1.5px border around the badge when using the dot property.booleanfalse
bottomAligns the component towards the bottom.booleanfalse
classAllows custom properties to take effect.stringundefined
contentAny content you want injected as text into the badge.anyundefined
darkApplies the dark theme.booleanfalse
dotReduce the size of the badge and hide its contents.booleanfalse
iconDesignates a specific icon used in the badge.stringmdi-account
leftAligns the component towards the left.booleanfalse
labelThe aria-label used for the badge.string'My Badge'
modeSets the transition mode.stringundefined
offsetXOffset the badge on the x-axis.number-stringundefined
offsetYOffset the badge on the y-axis.number-stringundefined
originSets the transition origin on the element.stringundefined
overlapOverlaps the slotted content on top of the component.booleanfalse
tileRemoves the component’s border-radius.booleanfalse
transitionSets the component transition.stringundefined
inlineMoves the badge to be inline with the wrapping element. Supports the usage of the left prop.booleanfalse
avatarRemoves badge padding for the use of the Avatar in the badge slot.booleanfalse
valueSets the icon is visible or not.booleantrue

Samples Component

image

image

image

image

Samples Qjson

badge