Components
Badge

Badge

Badges act as compact indicators, filledlighting information or status within digital platforms. They are multifunctional, serving to denote unread messages, signify achievements, or categorize content effectively.

Examples

Default

Default Badge.

Badge

Number Badge

Use a number by passing the type prop to the component.

2

Icon Badge

Add icons on the left and right of the text by passing the iconLeading and iconTrailing prop to the component, respectively.

Badge
Badge

Size

Change the size by passing the size prop

Badge
Badge
Badge

Variant

Change the variant by passing the emphasis prop

Badge
Badge
Badge

Color

Change the color by passing the color prop to the component.

Badge
Badge
Badge
Badge
Badge
Badge
Badge
Badge

Installation

size
"sm"
"md"
"lg"
default: "md"

Size of the Badge

variant
"filled"
"soft"
"outline"
default: "filled"

Variant of the Badge.

color
"blue"
"green"
"pink"
"purple"
"red"
"grey"
"yellow"
"cyan"
default: "blue"

Color of the Badge.

type
"text"
"number"
default: "text"

Type of the Badge. Setting type to number makes the Badge fit the size of the number.

iconTrailing
React.ReactNode

Icon shown on the left of the text in the Badge.

iconLeading
React.ReactNode

Icon shown on the right of the text in the Badge.

className
string

Classname to style the Badge.