|
1
|
import { ComponentExample } from "@/components/ComponentExample" |
|
2
|
import { ComponentReference } from "@/components/ComponentReference" |
|
3
|
|
|
4
|
export const metadata = { |
|
5
|
title: `Inline Tip`, |
|
6
|
} |
|
7
|
|
|
8
|
# {metadata.title} |
|
9
|
|
|
10
|
A component for displaying a note or tip inline. |
|
11
|
|
|
12
|
In this guide, you'll learn how to use the Inline Tip component. |
|
13
|
|
|
14
|
<ComponentExample name="inline-tip-demo" /> |
|
15
|
|
|
16
|
## Usage |
|
17
|
|
|
18
|
```tsx |
|
19
|
import { InlineTip } from "@medusajs/ui" |
|
20
|
``` |
|
21
|
|
|
22
|
```tsx |
|
23
|
<InlineTip |
|
24
|
label="This is a tip" |
|
25
|
> |
|
26
|
<button>Hover me</button> |
|
27
|
</InlineTip> |
|
28
|
``` |
|
29
|
|
|
30
|
--- |
|
31
|
|
|
32
|
## API Reference |
|
33
|
|
|
34
|
<ComponentReference mainComponent="InlineTip" /> |
|
35
|
|
|
36
|
--- |
|
37
|
|
|
38
|
## Examples |
|
39
|
|
|
40
|
### Success Inline Tip |
|
41
|
|
|
42
|
<ComponentExample name="inline-tip-success" /> |
|
43
|
|
|
44
|
### Warning Inline Tip |
|
45
|
|
|
46
|
<ComponentExample name="inline-tip-warning" /> |
|
47
|
|
|
48
|
### Error Inline Tip |
|
49
|
|
|
50
|
<ComponentExample name="inline-tip-error" hideFeedback /> |