Compact badge component for labels, status indicators, counters, removable tags, and contextual UI states.
pnpm dlx shadcn@latest add https://matos-ui.com/r/badge.jsonimport { Badge } from '@/components/matos-ui/badge'<Badge>New</Badge>
<Badge variant="secondary">Secondary</Badge>
<Badge variant="destructive">Destructive</Badge>
<Badge variant="outline">Outline</Badge>
<Badge variant="inset" dot>Live</Badge>
<Badge variant="keyboard">⌘K</Badge>| Prop | Type | Default |
|---|---|---|
variant | "default" | "secondary" | "destructive" | "outline" | "ghost" | "soft" | "dotted" | "surface" | "inset" | "tonal" | "muted" | "success" | "warning" | "info" | "pending" | "pulse" | "live" | "count" | "keyboard" | "beta" | "new" | "default" |
size | "xs" | "sm" | "md" | "lg" | "sm" |
shape | "pill" | "rounded" | "square" | "dot" | "rounded" |
iconLeft | ReactNode | - |
iconRight | ReactNode | - |
dot | boolean | false |
pulse | boolean | false |
count | ReactNode | - |
dismissible | boolean | false |
onDismiss | (event) => void | - |
interactive | boolean | false |
selected | boolean | false |
Badge also accepts all props from <span> (HTML).
Install Matos UI
Choose a package manager and copy one command for every component.