Skip to content

Badge

<bh-badge>

Badges are small visual indicators used to highlight information, statuses, or counts. They’re commonly used to display notification counts, status indicators, or labels.

Primary

Secondary

Success

Warning

Danger

Pill

Soft

Outline

Basic Usage

DefaultPrimarySuccess

Size Variants

SmallSmall
MediumMedium
LargeLarge

Color Variants

Standard Colors
Primary

Primary

Secondary

Secondary

Success

Success

Warning

Warning

Danger

Danger

Pill Badges

PrimaryPrimary
SecondarySecondary
SuccessSuccess
WarningWarning
DangerDanger

Soft Badges

PrimaryPrimary
SecondarySecondary
SuccessSuccess
WarningWarning
DangerDanger

Soft Outline Badges

PrimaryPrimary
SecondarySecondary
SuccessSuccess
WarningWarning
DangerDanger

Pill Soft Badges

Primary

Primary

Secondary

Secondary

Success

Success

Warning

Warning

Danger

Danger

Outline Badges

Primary

Primary

Secondary

Secondary

Success

Success

Warning

Warning

Danger

Danger

Special Variants

Gradient

Gradient

Neutral

Neutral

Light

Light

Dark

Dark

Custom Styling Examples

You can customize badges by setting specific properties:

Custom Color

Custom Purple

Custom Border

Dashed Border

Round Badge

Round

Usage Examples

Status Indicators

User Status

Online

Show user status with appropriate colors

Order Status

Processing

Indicate order progress with pill badges

Notification Counts

Messages

📨

5

Show unread message count

Notifications

🔔

12

Display notification count

Properties

PropertyTypeDescription
sizestringBadge size: "small", "medium", or "large"
variantstringBadge style variant (see Variants section)
widthstringCustom width (e.g., "100px")
heightstringCustom height (e.g., "20px")
backgroundstringCustom background color
borderRadiusstringCustom border radius
borderstringCustom border style
colorstringCustom text color
fontstringCustom font size