Files
mobilizon-frontend/src/components/Dashboard/NumberDashboardTile.vue
Thomas Citharel 2e72f6faf4 build: switch from yarn to npm to manage js dependencies and move js contents to root
yarn v1 is being deprecated and starts to have some issues

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-11-14 17:24:42 +01:00

21 lines
411 B
Vue

<template>
<article
:class="{ 'bg-white dark:bg-black mb-4 shadow-md rounded p-4': style }"
>
<p class="text-violet-3 text-4xl font-bold">{{ number }}</p>
<slot name="subtitle">
{{ subtitle }}
</slot>
</article>
</template>
<script lang="ts" setup>
withDefaults(
defineProps<{
number?: number;
subtitle?: string;
style?: boolean;
}>(),
{ style: true }
);
</script>