Card.vue 423 B

12345678910111213141516171819202122
  1. <script setup lang="ts">
  2. import type { HTMLAttributes } from "vue"
  3. import { cn } from '@/Packages/Shadcn/Lib/utils'
  4. const props = defineProps<{
  5. class?: HTMLAttributes["class"]
  6. }>()
  7. </script>
  8. <template>
  9. <div
  10. data-slot="card"
  11. :class="
  12. cn(
  13. 'bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm',
  14. props.class,
  15. )
  16. "
  17. >
  18. <slot />
  19. </div>
  20. </template>