import React from "react";
import UI from "#components/ui";
import type {
CardProps,
CardTitleProps,
CardContentProps,
CardFooterProps,
CardComponent,
} from "./card.types";
import {
cn,
CARD_CLASSES,
handleCardKeyDown,
warnInteractiveUsage,
} from "./card.utils";
/**
* Card.Title - Title sub-component for Card
*
* Renders a heading element for the card title. Defaults to h3 for proper
* document outline, but can be customized via the `as` prop.
*
* ## Accessibility
* - Use appropriate heading level based on document structure
* - Combine with `aria-labelledby` on parent Card for accessible names
*
* @example
* ```tsx
*
* Featured Product
*
* ```
*
* @example
* ```tsx
* // Custom heading level
* Section Title
* ```
*/
export const Title = ({
children,
className,
style,
as = "h3",
...props
}: CardTitleProps) => {
return (
{children}
);
};
Title.displayName = "Card.Title";
/**
* Card.Content - Content sub-component for Card
*
* Renders the main content area of the card. Defaults to `` for
* standalone content, but can be changed to `div` or `section` via the `as` prop.
*
* ## Semantic HTML Guidelines
* - Use `article` (default) for self-contained, syndicate-able content
* - Use `div` for generic content containers
* - Use `section` for thematic groupings with a heading
*
* @example
* ```tsx
*
* Article Title
*
*