import { PolymorphicComponentProps } from '@kalink-ui/dibbly'; import { clsx } from 'clsx'; import { ElementType } from 'react'; import { Box, type BoxProps } from '../box'; import { Cluster, type ClusterProps } from '../cluster'; import { Stack } from '../stack'; import { cardFooterRecipe } from './card.css'; import type { Spacing } from '../../styles'; import type { Responsive } from '../../styles/responsive'; export type CardRootElement = 'article' | 'div'; export type CardProps = BoxProps & { verticalSpacing?: Responsive; }; export function Card( props: CardProps, ) { const { use = 'article', variant, className, spacing = 4, verticalSpacing, children, ...rest } = props; return ( {children} ); } Card.Header = function CardHeader( props: PolymorphicComponentProps, ) { const { use: Comp = 'header', className, ...rest } = props; return ; }; Card.Body = function CardBody( props: PolymorphicComponentProps, ) { const { use: Comp = 'div', className, ...rest } = props; return ; }; type CardFooterProps = ClusterProps; Card.Footer = function CardFooter( props: CardFooterProps, ) { const { use = 'footer', spacing = 2, className, ...rest } = props; return ( ); };