Badge

The Badge component is used to highlight status, categories, or metadata with optional icons.

Usage

Default

Badge
<Badge text="Badge" />

With Icon

CheckWarningInfo

<Badge text="Check" icon={FaCheck} state="success" />
<Badge text="Warning" icon={FaExclamation} state="warning" />
<Badge text="Info" icon={FaInfoCircle} theme="primary" />

Props

Sortable data table
PropTypeDefaultDescription
textstring-Text or label displayed inside the badge.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultTheme color of the badge (primary, secondary, etc).
state"" | "success" | "error" | "warning"-Semantic state style applied to the badge.
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultBadge size (xs, small, medium, large, xl).
rounding"none" | "small" | "medium" | "large"Configured DefaultControls border-radius for the badge shape.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultApplies shadow intensity to the badge.
outlinebooleanfalseIf true, displays badge with outline instead of solid background.
iconReactNode-Optional icon displayed at the start of the badge.
onClick() => void-Callback fired when the badge is clicked (if interactive).
classNamestring-Additional CSS class name(s) for custom styling.
data-testidstring"badge"Test ID for test automation.