Data Display

Badge

Displays a badge or a component that looks like a badge — rounded or pill, with dots, flags, avatars, icons and a dismiss button.

Import

import {
  Badge,
  BadgeDot,
  BadgeAvatar,
  BadgeFlag,
  BadgeCloseButton,
} from "@countryclub/ui-react";

Variants

MemberGuestWaitlistNewPaidPendingOverdueSuspended

Sizes

SmallDefaultLargeFounding member

Pill color

Set shape to "pill" for fully rounded badges, in every color variant.

MemberGuestNewPaidPendingOverdueSuspended

Color

The default rounded shape with a tonal color, in three sizes.

NewNewNew

Modern

The "modern" variant — bordered with a subtle shadow.

LabelLabelLabel

With dot

A status dot inherits the badge's text color via BadgeDot.

ActiveActiveActive

With dot badge color

The dot on the default rounded shape.

ActiveActiveActive

With dot badge modern

On the modern variant, recolor the dot via className (e.g. bg-success).

ActiveActiveActive

With flag

A round country flag via BadgeFlag and an ISO alpha-2 "country" code.

AUAustraliaAUAustraliaAUAustralia

With flag badge color

The flag on the default rounded shape.

AUAustraliaAUAustraliaAUAustralia

With flag badge modern

The flag on the modern variant.

AUAustraliaAUAustraliaAUAustralia

With avatar

A tiny round avatar image via BadgeAvatar.

Olivia RhyeOlivia RhyeOlivia RhyeOlivia RhyeOlivia RhyeOlivia Rhye

With avatar badge color

The avatar on the default rounded shape.

Olivia RhyeOlivia RhyeOlivia RhyeOlivia RhyeOlivia RhyeOlivia Rhye

With avatar badge modern

The avatar on the modern variant.

Olivia RhyeOlivia RhyeOlivia RhyeOlivia RhyeOlivia RhyeOlivia Rhye

With close X

A dismissible badge — BadgeCloseButton renders a small X button.

DesignDesignDesign

With close X badge color

The close button on the default rounded shape.

DesignDesignDesign

With close X badge modern

The close button on the modern variant.

DesignDesignDesign

With icon leading

Any icon placed before the label is sized automatically.

12%12%12%

Color with icon leading

Leading icon on the default rounded shape.

12%12%12%

Modern with icon leading

Leading icon on the modern variant — tint it via className.

12%12%12%

With icon trailing

An icon placed after the label.

DetailsDetailsDetails

Color with icon trailing

Trailing icon on the default rounded shape.

DetailsDetailsDetails

Modern with icon trailing

Trailing icon on the modern variant.

DetailsDetailsDetails

With icon only

An icon with no label stays perfectly square — add an aria-label.

Color with icon only

Icon-only on the default rounded shape.

Modern with icon only

Icon-only on the modern variant.