{ "name": "ProductCardFour", "description": "E-commerce product card with name, variant description, and price in horizontal layout with favorite toggle.", "constraints": { "textRules": { "title": { "required": true, "example": "Featured Products", "minChars": 2, "maxChars": 50 }, "description": { "required": true, "example": "Discover our latest collection of premium apparel", "minChars": 5, "maxChars": 200 }, "tag": { "required": false, "example": "New Arrivals", "minChars": 2, "maxChars": 30 } }, "buttonRules": { "maxButtons": 2, "structure": { "text": "string - Button label (required)", "href": "string - Link destination (optional)", "onClick": "() => void - Click handler (optional)", "props": "Partial - Additional button props (optional)" }, "note": "Button variant controlled by ThemeProvider's defaultButtonVariant. All sections should be wrapped in a single ThemeProvider at the app/page level." }, "productCardRules": { "name": { "required": true, "example": "Represent X Puma Graphic T-Shirt", "minChars": 2, "maxChars": 100 }, "price": { "required": true, "example": "$100", "note": "Display price with currency symbol" }, "variant": { "required": true, "example": "Dark Grey 3 Colors", "minChars": 2, "maxChars": 100, "note": "Product variant description (color, size options, etc.)" }, "imageSrc": { "required": true, "example": "/product.jpg", "note": "Product image URL" } } }, "propsSchema": { "products": "Array<{ id: string, name: string, price: string, variant: string, imageSrc: string, imageAlt?: string, onFavorite?: () => void, onProductClick?: () => void, isFavorited?: boolean }> - Product items", "carouselMode?": "'auto' | 'buttons' (default: 'buttons')", "gridVariant": "'uniform-all-items-equal' | 'bento-grid' | 'bento-grid-inverted' | 'two-columns-alternating-heights' | 'asymmetric-60-wide-40-narrow' | 'three-columns-all-equal-width' | 'four-items-2x2-equal-grid' | 'one-large-right-three-stacked-left' | 'one-large-left-three-stacked-right' (required)", "uniformGridCustomHeightClasses?": "string (default: 'min-h-95 2xl:min-h-105')", "animationType": "'none' | 'opacity' | 'slide-up' | 'scale-rotate' | 'blur-reveal' (required)", "title": "string", "titleSegments?": "Array<{ type: 'text', content: string } | { type: 'image', src: string, alt?: string }> - For inline images in title", "description": "string", "tag?": "string", "tagIcon?": "LucideIcon", "buttons?": "Array<{text: string, onClick?: () => void, href?: string}>", "textboxLayout": "'default' | 'split' | 'split-actions' | 'split-description' | 'inline-image' (required - 'inline-image' uses titleSegments for rich text with images)", "useInvertedBackground": "'noInvert' | 'invertDefault' (required)", "ariaLabel?": "string (default: 'Product section')", "className?": "string" }, "usageExample": " console.log('favorited'), onProductClick: () => window.open('/product', '_blank') }]} title=\"Featured Products\" description=\"Discover our latest collection\" tag=\"New Arrivals\" tagIcon={Package} textboxLayout=\"default\" gridVariant=\"uniform-all-items-equal\" animationType=\"slide-up\" useInvertedBackground={\"noInvert\"} />", "do": [ "Use for product catalogs", "Use for e-commerce", "Requires products[]", "Requires titleSegments?[]", "Requires buttons?[]" ], "dont": [], "editRules": { "textOnly": true, "layoutLocked": true, "styleLocked": true } }