<template>
    <span class="loader" :style="{width: props.width + 'px', height: props.height + 'px'}"></span>
</template>

<script setup lang="ts">
interface Props {
    width: number;
    height: number;   
}

const props = defineProps<Props>();

</script>

<style lang="scss">
.loader {
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

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