yunohost-admin/app/src/components/globals/skeletons/BSkeleton.vue

34 lines
580 B
Vue

<template>
<div :style="{ height, width }" class="b-skeleton" />
</template>
<script>
export default {
name: 'BSkeleton',
props: {
height: { type: String, required: true },
width: { type: String, required: true },
},
}
</script>
<style scoped lang="scss">
.b-skeleton {
position: relative;
overflow: hidden;
background-color: $gray-200;
cursor: wait;
height: $font-size-base;
margin-bottom: map-get($spacers, 1);
@if $enable-rounded {
border-radius: 0.25rem;
}
[data-bs-theme='dark'] & {
background-color: $gray-800;
}
}
</style>