Skip to content

A self-hosted media server and file management system

563 B
Raw Blame
<script setup lang="ts">
const props = defineProps<{ title: string; data?: any[]; forceCount?: number }>();
</script>
<template>
    <div :class="`flex flex-col gap-2 p-3 overflow-clip rounded-xl shadow-lg dark:bg-primary-dark-800/70 bg-white ring-1 ring-gray-900/5 flex-1 w-1/3`">
        <span>
            <slot name="icon"> </slot>
            <p class="text-sm dark:text-slate-400 text-slate-500 max-w-full text-nowrap">{{ props.title }}</p>
        </span>
        <h3 class="text-xl">{{ props.forceCount ?? data?.length ?? 0 }}</h3>
    </div>
</template>