mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
parent
eb0ad4106d
commit
02ba8cb6ee
10 changed files with 410 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
<script>
|
||||
let className = undefined;
|
||||
export { className as class };
|
||||
export let id = Math.random();
|
||||
export let size = undefined;
|
||||
export let type = 'default';
|
||||
export let disabled = false;
|
||||
|
@ -26,7 +27,8 @@
|
|||
}
|
||||
}}
|
||||
on:click|preventDefault|stopPropagation
|
||||
{style}>
|
||||
{style}
|
||||
{id}>
|
||||
<slot />
|
||||
</div>
|
||||
{#if invalid}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue