A badge component that displays a label.
Copy the following code into your app directory.
Command
Command
Manual
Manual
uv
from components.ui.badge import BadgeUse the following composition to build a Badge
Below are examples demonstrating how the component can be used.
Displays a standard badge using the default variant, ideal for basic labeling.
BadgeSecondaryDestructiveOutline
Verified89920+
Demonstrates how to include icons inside badges for visual context or emphasis.
SuccessErrorWarningInfo
Showcases how badges can represent different statuses, like success or error, using color.
NewPopularSaleDraftFeatured
Illustrates how to use badges for showing counts, such as unread notifications or messages.
151099+