2
0
mirror of https://github.com/iconify/iconify.git synced 2024-10-24 01:22:04 +00:00
iconify/packages/svelte/tests/api/fixtures/ChangeProps.svelte
2021-05-01 23:38:56 +03:00

22 lines
328 B
Svelte

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