import { ComponentExample } from "@/components/ComponentExample"
import { ComponentReference } from "@/components/ComponentReference"

export const metadata = {
  title: `Badge`,
}

# {metadata.title}

A component for displaying labels or indicators in a badge style.

In this guide, you'll learn how to use the Badge component.

<ComponentExample name="badge-demo" />

## Usage

```tsx
import { Badge } from "@medusajs/ui"
```

```tsx
<Badge>Badge</Badge>
```

---

## API Reference

<ComponentReference mainComponent="Badge" />

---

## Examples

### Badge Colors

<ComponentExample name="badge-all-colors" />

### Badge Sizes

<ComponentExample name="badge-all-sizes" />

### Badge Rounded Variants

<ComponentExample name="badge-all-rounded" hideFeedback />