mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 11:47:53 +02:00
Set up a Spinner component
This commit is contained in:
parent
48f5c41288
commit
8736941aa1
19
resources/js_vue3/components/Spinner.vue
Normal file
19
resources/js_vue3/components/Spinner.vue
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<script setup>
|
||||||
|
const props = defineProps({
|
||||||
|
isVisible: Boolean,
|
||||||
|
type: {
|
||||||
|
type: String,
|
||||||
|
default: 'inline'
|
||||||
|
},
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div v-if="isVisible">
|
||||||
|
<div v-if="type == 'inline'" class="has-text-centered mt-6">
|
||||||
|
<span id="icnSpinner" class="is-size-4">
|
||||||
|
<FontAwesomeIcon :icon="['fas', 'spinner']" spin />
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
Loading…
x
Reference in New Issue
Block a user