<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import type { CardVariants } from "."
import { cn } from "@/lib/utils"
import { cardVariants } from "."

const props = withDefaults(defineProps<{
  class?: HTMLAttributes["class"]
  size?: CardVariants["size"]
}>(), {
  size: "default",
})
</script>

<template>
  <div
    data-slot="card"
    :data-size="size"
    :class="cn(cardVariants({ size }), props.class)"
  >
    <slot />
  </div>
</template>
