---
import type { HTMLAttributes } from "astro/types";
import { tv } from "tailwind-variants";

type Props = HTMLAttributes<"div">;

export const cardContent = tv({
  base: "px-6 group-data-[size=sm]/card:px-4",
});

const { class: className, ...rest } = Astro.props;
---

<div class={cardContent({ class: className })} data-slot="card-content" {...rest}>
  <slot />
</div>
