2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-13 22:18:24 +00:00
iconify/packages/svelte/tests/api/fixtures/ChangeProps.svelte

24 lines
351 B
Svelte

<script>
import Icon from '../../../';
export let icon;
export let expose;
export let onLoad;
const props = {
icon,
onLoad
};
$: {
expose(swap);
}
function swap() {
props.hFlip = true;
props.style = {
color: 'red'
}
}
</script>
<Icon {...props} />