deemixer/src/components/globals/BaseLoadingPlaceholder.vue

32 lines
558 B
Vue
Raw Normal View History

<template functional>
<div :id="props.id" class="loading_placeholder" :class="{ 'loading_placeholder--hidden': props.hidden }">
<span class="loading_placeholder__text">{{ props.text }}</span>
<div class="lds-ring">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</template>
<script>
export default {
props: {
text: {
type: String,
required: false,
default: 'Loading...'
},
id: {
type: String,
required: false
2020-07-18 16:06:07 +00:00
},
hidden: {
type: Boolean,
required: false,
default: false
}
}
}
</script>