Badge

Badges are small status descriptors for UI elements.

Badge
<Badge>Badge</Badge>

Installation

npx shadcn@latest add @dotui/badge

Usage

Use badges to highlight status, categorize items, or show counts.

import { Badge } from "@/components/ui/badge";
<Badge>Badge</Badge>

Playground

Use the controls below to experiment with different badge props and see the live preview and code update.

Badge
variant
appearance
<Badge>Badge</Badge>

Examples

Default

Badge

Variants

neutralsuccessdangerwarninginfo

Sizes

SmallMediumLarge

Icon

Verified

Pending

Pending

Loader

Badge

Count

8
Open Link

API Reference

Missing description.

Supports all span attributes.

PropType
"solid" | "subtle"
union
"lg" | "md" | "sm"

Last updated on 5/22/2026