On this page
Badge
Props
variant
<Badge>Badge</Badge>Installation
npm
pnpm
yarn
bun
npx shadcn@latest add @dotui/badgeUsage
Use badges to highlight status, categorize items, or show counts.
import { Badge } from '@/components/ui/badge'<Badge>Badge</Badge>Examples
Default
Badge
Variants
neutralsuccessdangerwarninginfo
Sizes
SmallMediumLarge
Icon
Verified
Pending
Pending
Loader
Badge
Count
8
Link
Open Link
API Reference
A badge displays a short label or status that describes an item.
Supports all span attributes.
| Prop | Type | Default | |
|---|---|---|---|
"solid" | "subtle" | 'solid' | ||
union | 'neutral' | ||
"lg" | "md" | "sm" | 'md' | ||
Last updated on 6/16/2026