Skip to main content
Version: 1.0.3

Badge

Badges are small status descriptors that can be used to highlight specific information, such as notification counts, status indicators, or labels. They can include text, numbers, or just a dot indicator.

3
Notifications
99+

Installation

ignix add component badge

Usage

Import the component:

import { Badge } from '@ignix-ui/badge';

Basic Usage

function BasicBadge() {
return (
<div className="relative inline-flex items-center">
<Badge mode="attached" text="3" type="primary" variant="pulse">
<Mail className="h-11 w-11" />
</Badge>
</div>
);
}

Props

PropTypeDefaultDescription
textstring-Text to display inside the badge
mode"inline" | "attached""inline"Inline badge or attached badge mode
type"primary" | "secondary" | "success" | "warning" | "error""primary"Visual style variant of the badge
variant"pulse" | "bounce" | "tinypop""tinypop"Animation variant applied to the badge
classNamestring-Additional CSS classes for the badge
childrenReact.ReactNode-Component the badge will be attached to