mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
refactor(types): rewrite type definitions to account for intrinsic attributes
This commit is contained in:
parent
8c30452169
commit
3c04f122b0
158 changed files with 6997 additions and 5383 deletions
21
tests/carbon-components-svelte-tests.svelte
Normal file
21
tests/carbon-components-svelte-tests.svelte
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script lang="ts">
|
||||
// example of a base import
|
||||
import { Tag } from "../types";
|
||||
|
||||
// example of a direct import
|
||||
import TagSkeleton from "../types/Tag/Tag.Skeleton";
|
||||
</script>
|
||||
|
||||
<!-- the "class", "style" attributes should not cause an error -->
|
||||
<Tag
|
||||
class="class-name"
|
||||
style="color: red;"
|
||||
type="red"
|
||||
on:click="{(e) => {
|
||||
console.log(e);
|
||||
}}"
|
||||
>
|
||||
text
|
||||
</Tag>
|
||||
|
||||
<TagSkeleton class="class-name" style="color: red;" />
|
Loading…
Add table
Add a link
Reference in a new issue