mirror of
https://github.com/iconify/iconify.git
synced 2024-12-13 14:13:06 +00:00
21 lines
329 B
Svelte
21 lines
329 B
Svelte
<script>
|
|
import Icon from '../../../';
|
|
|
|
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} on:load={event => {
|
|
onLoad(event.detail.icon)
|
|
}} /> |