|
1
|
import { ComponentExample } from "@/components/ComponentExample" |
|
2
|
import { ComponentReference } from "@/components/ComponentReference" |
|
3
|
|
|
4
|
export const metadata = { |
|
5
|
title: `Icon Badge`, |
|
6
|
} |
|
7
|
|
|
8
|
# {metadata.title} |
|
9
|
|
|
10
|
A component that displays an icon in a badge. |
|
11
|
|
|
12
|
In this guide, you'll learn how to use the Icon Badge component. |
|
13
|
|
|
14
|
<ComponentExample name="icon-badge-demo" /> |
|
15
|
|
|
16
|
## Usage |
|
17
|
|
|
18
|
```tsx |
|
19
|
import { IconBadge } from "@medusajs/ui" |
|
20
|
import { BuildingTax } from "@medusajs/icons" |
|
21
|
``` |
|
22
|
|
|
23
|
```tsx |
|
24
|
<IconBadge> |
|
25
|
<BuildingTax /> |
|
26
|
</IconBadge> |
|
27
|
``` |
|
28
|
|
|
29
|
--- |
|
30
|
|
|
31
|
## API Reference |
|
32
|
|
|
33
|
<ComponentReference mainComponent="IconBadge" /> |
|
34
|
|
|
35
|
--- |
|
36
|
|
|
37
|
## Examples |
|
38
|
|
|
39
|
### Colors |
|
40
|
|
|
41
|
<ComponentExample name="icon-badge-all-colors" /> |
|
42
|
|
|
43
|
### Sizes |
|
44
|
|
|
45
|
<ComponentExample name="icon-badge-all-sizes" hideFeedback /> |