All files / apps/huella-legal/app/components/listing SkeletonList.vue

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29  7x 3x       23x 3x                                          
<template>
    <div>
        <p class="sr-only">
            {{ $t("skeletonList.loading") }}
        </p>
        <ul class="flex flex-col divide-y divide-muted" aria-hidden="true">
            <li v-for="row in rows" :key="row" class="flex gap-6 py-5 first:pt-0">
                <div class="flex flex-1 flex-col gap-3">
                    <USkeleton class="h-3 w-28" />
                    <USkeleton class="h-6 w-11/12" />
                    <USkeleton class="h-6 w-3/5" />
                    <USkeleton class="h-3 w-48" />
                </div>
                <USkeleton class="hidden aspect-4/3 w-32 sm:block" />
            </li>
        </ul>
    </div>
</template>
 
<script setup lang="ts">
interface Props {
    rows?: number;
}
 
withDefaults(defineProps<Props>(), {
    rows: 3,
});
</script>