mirror of
https://github.com/iconify/iconify.git
synced 2024-12-14 14:38:25 +00:00
19 lines
297 B
Svelte
19 lines
297 B
Svelte
<script>
|
|
import Icon from '../../../dist/';
|
|
|
|
export let icon1;
|
|
export let icon2;
|
|
export let expose;
|
|
export let onLoad;
|
|
|
|
let icon = icon1;
|
|
|
|
$: {
|
|
expose(swap);
|
|
}
|
|
|
|
function swap() {
|
|
icon = icon2;
|
|
}
|
|
</script>
|
|
<Icon icon={icon} onLoad={onLoad} /> |