Badge
A small indicator displayed over another element for notifications and status.
When to Use
- To show notification counts on icons or avatars
- For status indicators (online, processing, error)
- To mark items with a dot or ribbon decoration
Import
Examples
Basic Count
Dot Indicator
Status Badges
Colors
Ribbon
API
BadgeProps
count—ReactNode | number— Badge countdot—boolean— Show dot instead of count (default:false)status—"success" | "processing" | "error" | "warning" | "default"— Status indicatorcolor—string— Custom or preset colorsize—"default" | "small"— Badge sizeshowZero—boolean— Show badge when count is zero (default:false)overflowCount—number— Max display count (default:99)offset—[number, number]— Position offset [x, y]text—ReactNode— Text next to status dot
Badge.Ribbon Props
text—ReactNode— Ribbon textcolor—string— Ribbon colorplacement—"start" | "end"— Ribbon position (default:"end")