Usage
To display a badge, wrap text in a <Badge>
.
New
Color
Different colors of badges can be displayed by setting the variant
.
Light
Dark
Success
Destructive
Brand
Icons
Icons can be displayed within a badge by importing and passing a FontAwesome icon.
Verified
Sizing
Badges can be either small (default) or large.
Small
Large
API Reference
Badge
Inherits properties from HTMLElement
.
Prop | Type | Default |
---|---|---|
children | ReactNode | |
className | string | |
icon | IconDefinition | |
size | "sm" "lg" | "sm" |
variant | "light" "dark" "success" "destructive" "brand" | "light" |