import React from "react"; interface TemplateCardProps { /** 图片URL */ imageUrl: string; /** 图片alt文本 */ imageAlt?: string; /** 标题 */ title: string; /** 描述文字 */ description: string; /** 是否选中,默认false */ isSelected?: boolean; /** 卡片宽度,默认150px */ width?: number; /** 卡片高度,默认200px */ height?: number; } /** * 3D翻转卡片组件 * 正面显示图片,背面显示标题和描述 */ const TemplateCard: React.FC = ({ imageUrl, imageAlt = "", title, description, isSelected = false, width = 150, height = 200, }) => { return (
{/* 背面 - 显示图片 */}
{imageAlt}
{/* 正面 - 显示文字和流光效果 */}
boutique

{title}

{description}

); }; export default TemplateCard;