1 import { ComponentExample } from "@/components/ComponentExample"
2 import { ComponentReference } from "@/components/ComponentReference"
3
4 export const metadata = {
5 title: `Textarea`,
6 }
7
8 # {metadata.title}
9
10 A component that displays a textarea field using Medusa's design system.
11
12 In this guide, you'll learn how to use the Textarea component.
13
14 <ComponentExample name="textarea-demo" />
15
16 ## Usage
17
18 ```tsx
19 import { Textarea } from "@medusajs/ui"
20 ```
21
22 ```tsx
23 <Textarea />
24 ```
25
26 ---
27
28 ## API Reference
29
30 <ComponentReference mainComponent="Textarea" />
31
32 ---
33
34 ## Examples
35
36 ### Controlled Textarea
37
38 <ComponentExample name="textarea-controlled" />
39
40 ### Disabled Textarea
41
42 <ComponentExample name="textarea-disabled" hideFeedback />