<script>
	import { IconSpiral } from '@tabler/icons-svelte';
	export let size = 32;
</script>

<div class="spinner"><IconSpiral {size} class="spinner-icon" /></div>

<style>
	.spinner {
		text-align: center;
	}

	:global(.spinner-icon) {
		animation: spin 1s linear infinite;
	}

	@keyframes spin {
		100% {
			transform: rotate(360deg);
		}
	}
</style>
