feat: Add the new Article card component (#10269)

This commit is contained in:
Sivin Varghese
2024-10-12 04:20:54 +05:30
committed by GitHub
parent 1e9959bb65
commit 694302b930
3 changed files with 214 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<script setup>
const emit = defineEmits(['click']);
const handleClick = () => {
emit('click');
};
</script>
<template>
<div
class="relative flex flex-col w-full gap-3 px-6 py-5 group/cardLayout rounded-2xl bg-slate-25 dark:bg-slate-800/50"
@click="handleClick"
>
<slot name="header" />
<slot name="footer" />
</div>
</template>