mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
test: add TS types
This commit is contained in:
parent
302e82d6a2
commit
eed617433b
126 changed files with 3378 additions and 226 deletions
23
tests/Icon.test.svelte
Normal file
23
tests/Icon.test.svelte
Normal file
|
@ -0,0 +1,23 @@
|
|||
<script lang="ts">
|
||||
import { Icon } from "../types";
|
||||
import Add16 from "carbon-icons-svelte/lib/Add16";
|
||||
import Add20 from "carbon-icons-svelte/lib/Add20";
|
||||
import Add24 from "carbon-icons-svelte/lib/Add24";
|
||||
import Add32 from "carbon-icons-svelte/lib/Add32";
|
||||
</script>
|
||||
|
||||
<Icon render="{Add16}" />
|
||||
|
||||
<Icon render="{Add20}" />
|
||||
|
||||
<Icon render="{Add24}" />
|
||||
|
||||
<Icon render="{Add32}" />
|
||||
|
||||
<Icon skeleton render="{Add16}" />
|
||||
|
||||
<Icon skeleton size="{20}" render="{Add20}" />
|
||||
|
||||
<Icon skeleton size="{24}" render="{Add24}" />
|
||||
|
||||
<Icon skeleton size="{32}" render="{Add32}" />
|
Loading…
Add table
Add a link
Reference in a new issue