Badge Group

Stable

Banner-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 featureWe've just released a new feature
New featureWe've just released a new feature

Leading — Brand

New featureWe've just released a new feature
New featureWe've just released a new feature

Leading — Error

AlertSomething went wrong, please try again
AlertSomething went wrong, please try again

Leading — Warning

WarningJust to let you know this might be a problem
WarningJust to let you know this might be a problem

Leading — Success

SuccessYou've updated your profile and details
SuccessYou've updated your profile and details

Modern — Trailing

The addon badge appears after the message text.

Trailing — Gray

We've just released a new featureNew feature
We've just released a new featureNew feature

Trailing — Brand

We've just released a new featureNew feature
We've just released a new featureNew feature

Trailing — Error

Something went wrong, please try againAlert
Something went wrong, please try againAlert

Trailing — Warning

Just to let you know this might be a problemWarning
Just to let you know this might be a problemWarning

Trailing — Success

You've updated your profile and detailsSuccess
You've updated your profile and detailsSuccess

Light — Leading

Lighter, more subtle inner badge styling. The addon uses a tinted background instead of a solid fill.

Light Leading — All Colors

New featureWe've just released a new feature
New featureWe've just released a new feature
AlertSomething went wrong, please try again
WarningJust to let you know this might be a problem
SuccessYou've updated your profile and details

Light — Trailing

Light theme with the addon badge positioned after the message.

Light Trailing — All Colors

We've just released a new featureNew feature
We've just released a new featureNew feature
Something went wrong, please try againAlert
Just to let you know this might be a problemWarning
You've updated your profile and detailsSuccess

Sizes

Three sizes available: sm, md, and lg.

All Sizes — Brand Modern Leading

New featureWe've just released a new feature
New featureWe've just released a new feature
New featureWe've just released a 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

PropTypeDefaultDescription
childrenReactNodeMessage text displayed in the badge group
addonTextstringText 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
iconReactNodeundefinedOptional icon inside the addon badge
onClick() => voidundefinedClick handler — adds pointer cursor when provided