Examples
Default
Truncated
All Variants
Without Dot
Left Icon
Props
Badge
A small inline label for status, category, or metadata information.boolean
default:"false"
Merge props onto a child element instead of rendering a
<span>.boolean
default:"true"
Whether to show a coloured status dot at the leading edge.
ReactNode
Icon element displayed before the label.
ReactNode
Icon element displayed after the label.
"dark" | "info" | "success" | "warning" | "error" | "negative" | "default" | "special" | ...
default:"default"
Visual style variant of the badge.Full type:
"dark" | "info" | "success" | "warning" | "error" | "negative" | "default" | "special" | "successColour" | "warningColour" | "errorColour" | "infoColour" | "aiGenerated" | "alwaysWhite" | "online" | "brand" | "pink" | "brandLight" | "pinkLight".Exported types
Also exported from@fanvue/ui: BadgeProps, BadgeVariant.
Setup: Installation · Theming