components

Badge

Highlight statuses or counts with compact labels

Source CodeRadix UI
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

PrimaryNeutralSuccessErrorWarningInfo

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

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