Skip to content

Badge

A badge or an element styled as a badge.

Favorite

Installation

Usage

Variants

Default

Badge

Secondary

Badge

Outline

Badge

Success

Badge

Info

Badge

Warning

Badge

Destructive

Badge

Sizes

The size prop controls the badge dimensions.

Small

Badge

Medium

Badge

Large

Badge

Pill

The pill prop creates fully rounded badges.

Badge

Examples

The asChild prop renders another element with badge styling.

With icon

Favorite

With spinner

DeletingGenerating

Custom color

IndigoPinkSkyPurple

API Reference

Badge

Label, count, or status badge. Supports variants.