Badge
A small status descriptor for UI elements, commonly used for external links and labels.
DefaultSecondaryDestructiveOutlineSuccessInfo
npx shadcn@latest add @roiui/badgenpx shadcn@latest add @roiui/badge-tailwindanatomy
Success
Error
Component props
Prop
Type
Default
Name
variantDescription
The visual style variant of the badge
Type
"default" | "secondary" | "destructive" | "outline" | "success" | "info"Default
"default"Name
sizeDescription
The size of the badge
Type
"sm" | "md" | "lg"Default
"md"Name
classNameDescription
Additional CSS classes to apply to the badge
Type
stringDefault
-
Component props
Prop
Type
Default
Name
classNameDescription
Additional CSS classes to apply to the icon container
Type
stringDefault
-