1 import { ComponentExample } from "@/components/ComponentExample"
2 import { ComponentReference } from "@/components/ComponentReference"
3
4 export const metadata = {
5 title: `Text`,
6 }
7
8 # {metadata.title}
9
10 A component that displays text using the typography styles from Medusa's design system.
11
12 In this guide, you'll learn how to use the Text component.
13
14 <ComponentExample name="text-demo" />
15
16 ## Usage
17
18 ```tsx
19 import { Text } from "@medusajs/ui"
20 ```
21
22 ```tsx
23 <Text>Text</Text>
24 ```
25
26 ---
27
28 ## API Reference
29
30 <ComponentReference mainComponent="Text" />
31
32 ---
33
34 ## Examples
35
36 ### Text Sizes
37
38 <ComponentExample name="text-sizes" />
39
40 ### Text Weights
41
42 <ComponentExample name="text-weights" />
43
44 ### Text Fonts
45
46 <ComponentExample name="text-fonts" />
47
48 ### Text Leading
49
50 <ComponentExample name="text-leading" hideFeedback />