A non-interactive label for annotating, categorizing, or highlighting content.
import { Badge } from '@backstage/ui';
<Badge>Badge</Badge>| Prop | Type | Default | Description |
|---|---|---|---|
icon | ReactNode | - | Icon displayed before the badge text. |
size | smallmedium | small | Visual size of the badge. Use small for inline or dense layouts, medium for standalone badges. |
children | ReactNode | - | |
className | string | - | Additional CSS class name for custom styling. |
<Badge icon={<RiBugLine />}>Banana</Badge>Our theming system is based on a mix between CSS classes, CSS variables and data attributes. If you want to customise this component, you can use one of these class names below.
bui-Badgebui-BadgeIconBadge component for non-interactive labeling and categorization of content. It shares the visual appearance of Tag but renders as a plain DOM element with no interactive states. #33744