mirror of
https://github.com/iconify/iconify.git
synced 2025-01-28 17:48:27 +00:00
22 lines
328 B
Svelte
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} /> |