mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Removed 'optional' import & changed slot name
This commit is contained in:
parent
f7714c721b
commit
b1e0228421
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
let elRigthPanel = undefined;
|
let elRigthPanel = undefined;
|
||||||
|
|
||||||
import { cx, optional } from '../../../lib';
|
import { cx } from '../../../lib';
|
||||||
import Icon from '../../Icon/Icon.svelte';
|
import Icon from '../../Icon/Icon.svelte';
|
||||||
import { slide } from 'svelte/transition';
|
import { slide } from 'svelte/transition';
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
isOpen = true;
|
isOpen = true;
|
||||||
}}>
|
}}>
|
||||||
<Icon {...icon} />
|
<Icon {...icon} />
|
||||||
<slot name="custom-el">
|
<slot name="text">
|
||||||
{#if text}
|
{#if text}
|
||||||
<span>{text}</span>
|
<span>{text}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue