mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11: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
31
tests/Tag.test.svelte
Normal file
31
tests/Tag.test.svelte
Normal file
|
@ -0,0 +1,31 @@
|
|||
<script lang="ts">
|
||||
import { Tag } from "../types";
|
||||
</script>
|
||||
|
||||
<Tag class="my-class" style="margin: 1rem;">IBM Cloud</Tag>
|
||||
|
||||
<Tag type="red">red</Tag>
|
||||
|
||||
<Tag type="magenta">magenta</Tag>
|
||||
|
||||
<Tag type="purple">purple</Tag>
|
||||
|
||||
<Tag type="blue">blue</Tag>
|
||||
|
||||
<Tag type="cyan">cyan</Tag>
|
||||
|
||||
<Tag type="teal">teal</Tag>
|
||||
|
||||
<Tag type="green">green</Tag>
|
||||
|
||||
<Tag type="gray">gray</Tag>
|
||||
|
||||
<Tag type="cool-gray">cool-gray</Tag>
|
||||
|
||||
<Tag type="warm-gray">warm-gray</Tag>
|
||||
|
||||
<Tag type="high-contrast">high-contrast</Tag>
|
||||
|
||||
<Tag filter on:click>Filterable</Tag>
|
||||
|
||||
<Tag skeleton />
|
Loading…
Add table
Add a link
Reference in a new issue