Skip to Content
glob.ui home
Components

Badge

A small label for a status or a count.

Server componentNo state or handlers. Safe to render in a Server Component.
import { Badge, badgeVariants } from "@glob-ui/badge"

Preview

DefaultPrimarySecondaryOutlineSuccessWarningDangerInfo

API

Props are generated from the TypeScript types in the package source.

BadgeProps

Prop

Type

Accessibility

Key or actionBehaviour
TextRead as plain text. The optional dot is decorative and hidden.

ARIA. A badge is text. Add words that explain the status, such as "3 unread", not only a colour.

On this page