forked from carbon-design-system/carbon-components-svelte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTooltip.test.svelte
52 lines (41 loc) · 1.3 KB
/
Tooltip.test.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<script lang="ts">
import { Tooltip, Link, Button } from "../types";
import Catalog16 from "carbon-icons-svelte/lib/Catalog16";
</script>
<Tooltip>
<p>Resources are provisioned based on your account's organization.</p>
</Tooltip>
<Tooltip triggerText="Resource list">
<p>Resources are provisioned based on your account's organization.</p>
</Tooltip>
<Tooltip triggerText="Top" direction="top">
<p>Top</p>
</Tooltip>
<Tooltip triggerText="Right" direction="right">
<p>Right</p>
</Tooltip>
<Tooltip triggerText="Bottom" direction="bottom">
<p>Bottom</p>
</Tooltip>
<Tooltip triggerText="Left" direction="left">
<p>Left</p>
</Tooltip>
<Tooltip triggerText="Resource list">
<p>Resources are provisioned based on your account's organization.</p>
<div class="bx--tooltip__footer">
<Link href="/">Learn more</Link>
<Button size="small">Manage</Button>
</div>
</Tooltip>
<Link href="/">Learn more</Link>
<Button size="small">Manage</Button>
<Tooltip triggerText="Resource list" icon="{Catalog16}">
<p>Resources are provisioned based on your account's organization.</p>
</Tooltip>
<Tooltip triggerText="Resource list">
<div
slot="icon"
style="width: 1rem; height: 1rem; outline: 1px solid red;"
></div>
<p>Resources are provisioned based on your account's organization.</p>
</Tooltip>