Docs/Badge
primitives@pdfcn-vue/badge

Badge

Compact status or category label.

Installation

Terminal

npx shadcn-vue@latest add @pdfcn-vue/badge

Usage

Example

<Badge variant="success">Paid</Badge>
<Badge variant="outline" size="sm">Draft</Badge>

Props

PropTypeDefaultDescription
variant'default' | 'primary' | 'success' | 'warning' | 'destructive' | 'info' | 'outline''default'Badge tone.
size'sm' | 'md' | 'lg''md'Badge size.

Live preview

The gallery uses a shared document. Change its theme in the theme builder to compare tokens.

Badge in a document
Rendered with Forme in your browser.
Browser render

Rendering the PDF…

Vue SFC → Uint8Array

Source files

Registry paths
Files installed under components/pdf.
  • forme/components/Badge.vue
  • forme/components/badge.types.ts

Edit the theme tokens

Try the theme builder