components

Badge

Highlight statuses or counts with compact labels

NewNeutralClose4424BookmarkSSamuel

Installation

pnpm dlx radianui@latest add badge

Usage

Imports

/components/ui/badge.tsx
import { Badge, BadgeDot } from "@/components/ui/badge"

Code

/components/ui/badge.tsx
<Badge variant="strong" color="success">
	Active
</Badge>

Examples

Badge Color

Primary

StrongOutlineSoft

Neutral

StrongOutlineSoft

Success

StrongOutlineSoft

Error

StrongOutlineSoft

Warning

StrongOutlineSoft

Info

StrongOutlineSoft

Red

StrongOutlineSoft

Orange

StrongOutlineSoft

Amber

StrongOutlineSoft

Yellow

StrongOutlineSoft

Neon

StrongOutlineSoft

Green

StrongOutlineSoft

Emerald

StrongOutlineSoft

Teal

StrongOutlineSoft

Cyan

StrongOutlineSoft

Light Blue

StrongOutlineSoft

Blue

StrongOutlineSoft

Violet Blue

StrongOutlineSoft

Purple

StrongOutlineSoft

Dark Orchid

StrongOutlineSoft

Fuchsia

StrongOutlineSoft

Magenta

StrongOutlineSoft

Rose

StrongOutlineSoft

Badge Variants

StrongOutlineSoft
StrongOutlineSoft
StrongOutlineSoft

Badge Sizes

Size 20Size 24Size 28

Badge With Icon

VerifiedProfileMetrics4.8 Ratings

Badge With Dot

UpdateUpdateUpdate

Badge With Avatar

SJean MarineSJean MarineSJean MarineSJean Marine

Badge With Cross

Required Metrics Invited Verified

Badge With Emoji

🏠House

Badge With Flag

United States

Interactive Badge Example

ACAvaMJMia
Click + to add people. Click × to remove.

Rounded Badge

VIP22New CustomerSSamuel Eto 244 Errors

Nested Badge

NewPatch 0.2.1 is now onlineSave 17% offAnnual

Props

<Badge>
NameDefaultValues
variantneutralneutralstrongoutlinesoft
size24202428
colorprimaryprimaryinfosuccesswarningdanger
dotfalseboolean
asChildfalseboolean