Files
hossein-por-shop/frontend/components/global/Placeholder.vue
T
2025-03-13 20:21:11 +03:30

25 lines
526 B
Vue

<script setup lang="ts">
// types
type Props = {
title: string;
icon: string;
};
// props
defineProps<Props>();
</script>
<template>
<div
class="w-full flex-col flex-grow py-[12rem] gap-6 border-2 border-slate-200 border-dashed size-full rounded-xl flex-center"
>
<Icon :name="icon" size="50" class="**:fill-gray-500" />
<span class="text-lg text-gray-500"> {{ title }} </span>
<slot v-if="$slots['actions']" name="actions" />
</div>
</template>
<style scoped></style>