Badge

Data Display

macOS status pills (default, secondary, success, warning, destructive, outline).

Installation

$npx shadcn-macos@latest add badge

Examples

Default Blue
Secondary
Success
Syncing
Error
v1.5.0

Props

<Badge />
PropTypeDefaultDescription
variant"default" | "secondary" | "destructive" | "outline" | "success" | "warning""default"The badge color theme.
classNamestringCustom CSS class names.
childrenReact.ReactNodeBadge text or icons.