Badge

Small numerical value or status descriptor for UI elements.

When To Use

Badge normally appears in proximity to notifications or user avatars with eye-catching appeal, typically displaying unread messages count.

Intent

The visual intent or color scheme of the badge.

Primary Secondary Success Danger Warning Info

Variant

The style variant of the badge. Use `solid`, `soft` or `outline`.

Solid Soft Outline

Size

Set size of the Badge.

Small Medium Large

Shape

Badges can have different shapes like pill (default) or rounded.

Pill Rounded

Dot

This will simply display a badge dot, without a specific count.

Standalone / Notification

Use the `notification` shape for numerical indicators like unread counts.

3 +99

Positioning

Badges can be positioned absolutely relative to a parent container using the `position` prop.

9

API

Property
Description
Type
Default

intent

The visual intent or color scheme of the badge. "primary" | "secondary" | "success" | "danger" | "warning" | "info" "primary"

variant

The style variant of the badge. "solid" | "outline" | "soft" "soft"

size

The size of the badge. "sm" | "md" | "lg" "md"

shape

The geometric shape of the badge. "rounded" | "pill" | "dot" | "notification" "pill"

position

Positions the badge absolutely relative to its nearest positioned ancestor. "top-right" | "bottom-right" | "top-left" | "bottom-left" -

class

Additional CSS classes to apply to the badge. string -