17 lines
416 B
Plaintext
17 lines
416 B
Plaintext
---
|
|
import type { HTMLAttributes } from "astro/types";
|
|
import { tv } from "tailwind-variants";
|
|
|
|
type Props = HTMLAttributes<"div">;
|
|
|
|
export const cardDescription = tv({
|
|
base: "text-muted-foreground text-base group-data-[size=sm]/card:text-sm",
|
|
});
|
|
|
|
const { class: className, ...rest } = Astro.props;
|
|
---
|
|
|
|
<div class={cardDescription({ class: className })} data-slot="card-description" {...rest}>
|
|
<slot />
|
|
</div>
|