Badge

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.
classNamestring—Custom CSS class names.
childrenReact.ReactNode—Badge text or icons.