mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
52
tests/Tooltip.test.svelte
Normal file
52
tests/Tooltip.test.svelte
Normal file
|
@ -0,0 +1,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>
|
Loading…
Add table
Add a link
Reference in a new issue