Ready-to-Use Components Powered by Flowbite, ShadCN & Headless UI
Component Library
Browse and explore components
Badge
A Badge is a UI component used to display statuses, notifications, or labels.
Default Badges
PrimarySecondarySuccessInfoWarningDanger
Sample Code
Show Code
Copy Code
Light Badges
PrimarySecondarySuccessInfoWarningDanger
Sample Code
Show Code
Copy Code
Badges as link
Sample Code
Show Code
Copy Code
Badge with icon text
2 minutes ago3 days ago4 days ago5 days ago
Sample Code
Show Code
Copy Code
Icon Badges
Sample Code
Show Code
Copy Code
Badge Sizes
PrimarySecondarySuccessInfo
PrimarySecondarySuccessInfo
Sample Code
Show Code
Copy Code
API ( Badge )
Prop | Description | Type | Default |
---|---|---|---|
color | Sets the color of the badge. | "primary" | "success" | "danger" | "warning" | "default" |
icon | Adds an icon component inside the badge, usually displayed before the text. | "HiCheck" | "HiOutlineExclamation" | - |
size | Controls the size of the badge including icon and text. | "xs" | "sm" | "sm" |