Raw
1 import { ComponentExample } from "@/components/ComponentExample"
2 import { ComponentReference } from "@/components/ComponentReference"
3
4 export const metadata = {
5 title: `Status Badge`,
6 }
7
8 # {metadata.title}
9
10 A component that displays the status of an item in a badge style. It's useful to indicate states like "Active", "Published", or "Draft".
11
12 In this guide, you'll learn how to use the Status Badge component.
13
14 <ComponentExample name="status-badge-demo" />
15
16 ## Usage
17
18 ```tsx
19 import { StatusBadge } from "@medusajs/ui"
20 ```
21
22 ```tsx
23 <StatusBadge color="green">Active</StatusBadge>
24 ```
25
26 ---
27
28 ## API Reference
29
30 <ComponentReference mainComponent="StatusBadge" />
31
32 ---
33
34 ## Examples
35
36 ### Status Badge Colors
37
38 <ComponentExample name="status-badge-all-colors" hideFeedback />