The library is still in early development. Breaking changes and bugs may occur without prior notice. Thanks for your interest in using the library!
v0.2.47Beta

Search

Badge

Source

A small component used to highlight status, labels, or counts.

Badge

Usage

Import the Badge component from @bun-ui/react:

import { Badge } from "@bun-ui/react"

Examples

Colors

The Badge component supports different colors to indicate various states or categories.

PrimarySecondaryAccentNeutralDestructive

Sizes

The Badge component comes in three sizes to fit different contexts.

SmallMediumLarge

Variant

FilledOutlined

Customization

The Badge component can be customized using the className prop or by extending its styles with your design system.

<Badge className="bg-gradient-to-r from-purple-500 to-pink-500">
  Custom Badge
</Badge>

Refer to the source code for more advanced usage and customization options.