import { forwardRef } from "react"; import { cardContentVariants, cardDescriptionVariants, cardFooterVariants, cardHeaderVariants, cardTitleVariants, cardVariants } from "./card.variants"; import { cn } from "../lib/cn"; import type { VariantProps } from "../lib/cva"; import { createDataAttributes, createSlot } from "../lib/contracts"; export type CardProps = React.ComponentPropsWithoutRef<"div"> & VariantProps; export const Card = forwardRef(function Card( { className, interactive, tone, ...props }, ref ) { return (
); }); export type CardHeaderProps = React.ComponentPropsWithoutRef<"div">; export const CardHeader = forwardRef(function CardHeader( { className, ...props }, ref ) { return (
); }); export type CardTitleProps = React.ComponentPropsWithoutRef<"h3">; export const CardTitle = forwardRef(function CardTitle( { className, ...props }, ref ) { return (

); } ); export type CardDescriptionProps = React.ComponentPropsWithoutRef<"p">; export const CardDescription = forwardRef( function CardDescription({ className, ...props }, ref) { return (

); } ); export type CardContentProps = React.ComponentPropsWithoutRef<"div">; export const CardContent = forwardRef(function CardContent( { className, ...props }, ref ) { return (

); }); export type CardFooterProps = React.ComponentPropsWithoutRef<"div">; export const CardFooter = forwardRef(function CardFooter( { className, ...props }, ref ) { return (
); });