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

24 lines
356 B
Svelte
Raw Normal View History

2021-05-01 20:38:56 +00:00
<script>
import Icon from '../../../dist/';
2021-05-01 20:38:56 +00:00
export let icon;
export let expose;
export let onLoad;
2021-05-01 20:38:56 +00:00
const props = {
icon,
onLoad
2021-05-01 20:38:56 +00:00
};
$: {
expose(swap);
}
function swap() {
props.hFlip = true;
props.style = {
color: 'red'
}
}
</script>
<Icon {...props} />