Badge Group
StableBanner-style notification badges with an inner addon pill and message text. Available in five colors, two themes, leading/trailing alignment, and three sizes.
Modern — Leading
The addon badge appears before the message text. Solid inner badge with a subtle tinted container.
Leading — Gray
New feature
New feature
Leading — Brand
New feature
New feature
Leading — Error
Alert
Alert
Leading — Warning
Warning
Warning
Leading — Success
Success
Success
Modern — Trailing
The addon badge appears after the message text.
Trailing — Gray
New feature
New feature
Trailing — Brand
New feature
New feature
Trailing — Error
Alert
Alert
Trailing — Warning
Warning
Warning
Trailing — Success
Success
Success
Light — Leading
Lighter, more subtle inner badge styling. The addon uses a tinted background instead of a solid fill.
Light Leading — All Colors
New feature
New feature
Alert
Warning
Success
Light — Trailing
Light theme with the addon badge positioned after the message.
Light Trailing — All Colors
New feature
New feature
Alert
Warning
Success
Sizes
Three sizes available: sm, md, and lg.
All Sizes — Brand Modern Leading
New feature
New feature
New feature
Usage
Import the BadgeGroup component and configure color, theme, alignment, and size.
tsx
import { BadgeGroup } from "omnira-ui/BadgeGroup";
export default function Notifications() {
return (
<div style={{ display: "flex", flexDirection: "column", gap: 12 }}>
<BadgeGroup
addonText="New feature"
color="brand"
theme="modern"
align="leading"
size="md"
>
We've just released a new feature
</BadgeGroup>
<BadgeGroup
addonText="Warning"
color="warning"
theme="modern"
align="trailing"
size="md"
>
Just to let you know this might be a problem
</BadgeGroup>
<BadgeGroup
addonText="Success"
color="success"
theme="light"
align="trailing"
size="lg"
onClick={() => console.log("clicked")}
>
You've updated your profile and details
</BadgeGroup>
</div>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Message text displayed in the badge group |
| addonText | string | — | Text inside the inner addon pill badge |
| color | "gray" | "brand" | "error" | "warning" | "success" | "gray" | Color variant for both the container and addon badge |
| theme | "modern" | "light" | "modern" | Modern uses a solid addon badge, light uses a subtle tinted addon |
| align | "leading" | "trailing" | "leading" | Position of the addon badge — before or after the message |
| size | "sm" | "md" | "lg" | "md" | Overall badge group size |
| icon | ReactNode | undefined | Optional icon inside the addon badge |
| onClick | () => void | undefined | Click handler — adds pointer cursor when provided |