Badge

A small count and labeling component. Useful for notifications, status, or featuring numbers.

Usage

Basic Badge

Render a Badge with a label.

<Badge label="Badge" />

Variants

Change the visual appearance using the variant prop.

<Flex>
<Badge label="Badge" variant="solid" />
<Badge label="Badge" variant="ghost" />
<Badge label="Badge" variant="outlined" />
</Flex>

Color, Radius & High Contrast

Customize the badge's appearance using color, radius, and highContrast props.

<Badge label="99+" color="red" radius="full" highContrast />

API

Props

PropTypeDefaultRequired
labelstring | number-Yes
variant'solid' | 'ghost' | 'outlined''solid'-
MarginPropsToken<MarginProps>--
colorThemeAccentColor--
radiusThemeRadius--
sizeResponsive<Size>'medium'-
highContrastboolean--
Avatar
Previous
Carousel
Next