mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
17 lines
401 B
Svelte
17 lines
401 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let small = false;
|
|
export let href = undefined;
|
|
export let props = {};
|
|
|
|
import { cx } from '../../lib';
|
|
|
|
const _class = cx('--skeleton', '--btn', small && '--btn--sm', className);
|
|
</script>
|
|
|
|
{#if href}
|
|
<a {...props} class={_class} {href} role="button">{''}</a>
|
|
{:else}
|
|
<div {...props} class={_class} />
|
|
{/if}
|