Skip to content
GitHub

Badge

A badge or an element styled as a badge.

Favorite

Installation

Usage

Variants

The variant prop controls the badge's visual style.

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.

BadgeBadgeBadge
BadgeBadgeBadge

Examples

The asChild prop renders another element with badge styling.

With icon

Icons can be added to badges for visual context.

Favorite

With spinner

The <Spinner /> component indicates loading states when placed inside a badge.

DeletingGenerating

Custom color

IndigoPinkSkyPurple

API Reference

Badge

Label, count, or status badge. Supports variants.


For a complete list of props, see the Ark UI documentation.