Skip to main content

Badge

Badges are small status descriptors for UI elements.

On this page
Badge
Props
variant
<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>

Examples

Default

Badge

Variants

neutralsuccessdangerwarninginfo

Sizes

SmallMediumLarge

Icon

Verified

Pending

Pending

Loader

Badge

Count

8
Open Link

API Reference

A badge displays a short label or status that describes an item.

Supports all span attributes.

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

Last updated on 6/16/2026