Skip to content

Badge

Status indicator with label and optional icon for highlighting states or counts.

Open in Storybook

Interactive Demo

ActivePendingFailedInfo

Sizes

Size variants

LargeSmall

Usage

vue
<script setup>
import { Badge } from '@yellowcard/b2b-design-system';
</script>

<template>
  <Badge label="Active" variant="success" />
  <Badge label="Pending" variant="warning" />
  <Badge label="3" size="small" />
</template>

API Reference

Props

PropTypeDefaultDescription
label*stringBadge text content
variantstringVisual style variant (success, warning, error, info, etc.)
sizestringBadge size
showIconbooleanfalseShow icon alongside label
ariaLabelstringAccessible label