Badge

A small label for status, counts or categories.
Stable
Web
iOS
Android
@advui/core
Source
Badge
JSX
<Badge>Badge</Badge>
variant
size

Installation

pnpm
pnpm add @advui/core
npm
npm install @advui/core

Usage

import { Badge } from '@advui/core'

<Badge variant="success">Active</Badge>

Examples

Variants

Default
Secondary
Outline
Paid
Pending
New
Overdue

With icon

Verified
Featured

API reference

Badge

PropTypeDefaultDescription
variant'default' | 'secondary' | 'outline' | 'destructive' | 'success' | 'warning' | 'info''default'Color intent.
size'sm' | 'md''md'Padding scale.
iconReactNode—Leading icon (12px, tinted to match).

Accessibility

  • Badges are static text — do not rely on color alone; the label must carry the meaning.
  • Soft status variants meet 4.5:1 text contrast in light and dark mode.
  • For live counts (e.g. unread messages) announce changes with a polite live region elsewhere.
Since v0.1.0Last updated Nov 2, 2026Edit this page on GitHub