Badge
Displays a badge or a component that looks like a badge.
BadgeSecondaryDestructiveOutline
Installation
Usage
<Badge variant=Badge.Variant.Outline> {"Badge"->React.string} </Badge>Examples
Variants
Use the variant prop to change the variant of the badge.
DefaultSecondaryDestructiveOutlineGhost
With Icon
You can render an icon inside the badge. Use dataIcon=InlineStart to render the icon on the left and dataIcon=InlineEnd to render the icon on the right.
VerifiedBookmark
With Spinner
You can render a spinner inside the badge. Remember to add the dataIcon=InlineStart or dataIcon=InlineEnd prop to the spinner.
DeletingGenerating
Link
Use the render prop to render a link as a badge.
Custom Colors
You can customize the colors of a badge by adding custom classes such as bg-green-50 dark:bg-green-800 to the Badge component.
BlueGreenSkyPurpleRed
API Reference
Badge
The Badge component displays a badge or a component that looks like a badge.