diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2025-01-17 13:42:21 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2025-01-17 13:42:21 +0000 |
| commit | 70ebc77f843207a1d4b46c8d960dafbff37e7e2e (patch) | |
| tree | 2d03f7a66b877bb6ffa2f92c0504ac90f26db55f /components/Spinner.vue | |
Initial commit
Diffstat (limited to 'components/Spinner.vue')
| -rw-r--r-- | components/Spinner.vue | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/components/Spinner.vue b/components/Spinner.vue new file mode 100644 index 0000000..a58f83d --- /dev/null +++ b/components/Spinner.vue @@ -0,0 +1,30 @@ +<script setup lang="ts"> +import { Loader2Icon } from 'lucide-vue-next' + +const props = defineProps<{ + color?: string + size?: number +}>() + +</script> + +<template> + <Loader2Icon class="icon-loader" :color="color" :size="size" /> +</template> + +<style scoped> +.icon-loader { + animation: spin 1s linear infinite; + color: var(--color-text); +} + +@keyframes spin { + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +} +</style> |
