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

export interface CardProps {
  variant?: CardVariants["variant"]
  padding?: CardVariants["padding"]
  class?: HTMLAttributes["class"]
}

const props = defineProps<CardProps>()
</script>

<template>
  <div :class="cn(cardVariants({ variant, padding }), props.class)">
    <slot />
  </div>
</template>
