|
1
|
import { ComponentExample } from "@/components/ComponentExample" |
|
2
|
import { ComponentReference } from "@/components/ComponentReference" |
|
3
|
|
|
4
|
export const metadata = { |
|
5
|
title: `Heading`, |
|
6
|
} |
|
7
|
|
|
8
|
# {metadata.title} |
|
9
|
|
|
10
|
A component used for page titles and other headers. |
|
11
|
|
|
12
|
In this guide, you'll learn how to use the Heading component. |
|
13
|
|
|
14
|
<ComponentExample name="heading-demo" /> |
|
15
|
|
|
16
|
## Usage |
|
17
|
|
|
18
|
```tsx |
|
19
|
import { Heading } from "@medusajs/ui" |
|
20
|
``` |
|
21
|
|
|
22
|
```tsx |
|
23
|
<Heading>A Title</Heading> |
|
24
|
``` |
|
25
|
|
|
26
|
--- |
|
27
|
|
|
28
|
## API Reference |
|
29
|
|
|
30
|
<ComponentReference mainComponent="Heading" hideFeedback /> |