Badge

Badges are used to display a status of an object or action that a component has performed. Often used inside tables and other data lists.

Source
New
Overview
Subscribed
12
Admin

Props

NameDefaultType
variantneutralneutral danger warning success info accent note
The visual style of the badge
outlinefalseboolean
Whether to show the badge with an outline style
filledfalseboolean
Whether to show the badge with a filled background
sizems m l
Controls the size of the badge
circlefalseboolean
Renders the badge as a circle. Useful for numeric counters or status dots

Slots

NameAcceptsDescription
defaultanyContent to display inside the badge

Tokens

CSS variable tokens used for global or per-instance manipulation of certain styling.

TokenDefaultDescription
--vui-badge-padding-block2pxVertical padding
--vui-badge-padding-inlinevar(--space-s)Horizontal padding
--vui-badge-font-sizevar(--font-size-s)Font size
--vui-badge-height24pxBadge height