Raw
1 import { ComponentExample } from "@/components/ComponentExample"
2 import { ComponentReference } from "@/components/ComponentReference"
3
4 export const metadata = {
5 title: `Label`,
6 }
7
8 # {metadata.title}
9
10 A component that renders an accessible label associated with input fields.
11
12 In this guide, you'll learn how to use the Label component.
13
14 <ComponentExample name="label-demo" />
15
16 ## Usage
17
18 ```tsx
19 import { Label } from "@medusajs/ui"
20 ```
21
22 ```tsx
23 <Label>Label</Label>
24 ```
25
26 ---
27
28 ## API Reference
29
30 <ComponentReference mainComponent="Label" />
31
32 ---
33
34 ## Examples
35
36 ### Label Sizes
37
38 <ComponentExample name="label-all-sizes" />
39
40 ### Label with Form Inputs
41
42 <ComponentExample name="label-with-inputs" hideFeedback />