mirror of
https://github.com/iconify/iconify.git
synced 2024-12-14 14:38:25 +00:00
24 lines
356 B
Svelte
24 lines
356 B
Svelte
<script>
|
|
import Icon from '../../../dist/';
|
|
|
|
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} /> |