Badge

A small label for status, counts or categories.

DefaultMutedDestructiveSuccessWarningInfo

Installation

  1. Add the registryOnce per project
  2. Add badge

Usage

Examples

With icons

Pair a status color with an icon or a word, so the badge doesn't rely on color alone.

PaidPendingOverduemain

Counts

A badge can sit inside a button, beside its label.

3128

Pass an element to render to make the badge a link or a button.

Props

The tables leave out className, style and render. Parts built on Base UI take them as its styling and composition guides describe.

Badge