Initial commit
This commit is contained in:
114
registry/components/FeatureCardTwentyNine.json
Normal file
114
registry/components/FeatureCardTwentyNine.json
Normal file
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"name": "FeatureCardTwentyNine",
|
||||
"description": "Adaptive feature section with hover-reveal cards displaying features with title icons, verified badges, and action buttons.",
|
||||
"details": "Use for interactive feature showcases with hover effects. Each card displays a title icon, title with verified badge, image background, and description that reveals with a slide-up background animation. Each card has an action button in the top-right corner. Automatically switches between grid (1-4 items) and carousel (5+ items). Carousel offers auto-scroll or button controls (recommended: keep default buttons for better UX). Optional header with title, description, tag, and buttons. Header supports centered or split textbox layout.",
|
||||
"constraints": {
|
||||
"textRules": {
|
||||
"title": {
|
||||
"required": true,
|
||||
"example": "Our Features",
|
||||
"minChars": 2,
|
||||
"maxChars": 35
|
||||
},
|
||||
"description": {
|
||||
"required": true,
|
||||
"example": "Discover what makes us different",
|
||||
"minChars": 5,
|
||||
"maxChars": 250
|
||||
},
|
||||
"tag": {
|
||||
"required": false,
|
||||
"example": "Features",
|
||||
"minChars": 2,
|
||||
"maxChars": 30
|
||||
}
|
||||
},
|
||||
"featureCardRules": {
|
||||
"title": {
|
||||
"required": true,
|
||||
"example": "Advanced Analytics",
|
||||
"minChars": 2,
|
||||
"maxChars": 35
|
||||
},
|
||||
"description": {
|
||||
"required": true,
|
||||
"example": "Get detailed insights into your business performance",
|
||||
"minChars": 10,
|
||||
"maxChars": 250
|
||||
},
|
||||
"buttonText": {
|
||||
"required": true,
|
||||
"example": "Learn More",
|
||||
"minChars": 2,
|
||||
"maxChars": 20
|
||||
}
|
||||
},
|
||||
"mediaRules": {
|
||||
"imageSrc": {
|
||||
"required": true,
|
||||
"example": "/feature.jpg",
|
||||
"note": "Supports external URLs with unoptimized prop"
|
||||
},
|
||||
"imageAlt": {
|
||||
"required": false,
|
||||
"example": "Feature background",
|
||||
"note": "Empty string marks image as decorative (aria-hidden)"
|
||||
},
|
||||
"titleIconSrc": {
|
||||
"required": true,
|
||||
"example": "/icon.jpg",
|
||||
"note": "Icon displayed next to the title"
|
||||
}
|
||||
}
|
||||
},
|
||||
"propsSchema": {
|
||||
"features": "Array<{ title: string, description: string, imageSrc: string, imageAlt?: string, titleIconSrc: string, buttonText: string, buttonHref?: string }>",
|
||||
"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' | 'items-top-row-full-width-bottom' | 'full-width-top-items-bottom-row' | 'one-large-left-three-stacked-right' (required)",
|
||||
"animationType": "'none' | 'opacity' | 'slide-up' | 'scale-rotate' | 'blur-reveal' (required - controls GSAP scroll animations with stagger effect)",
|
||||
"uniformGridCustomHeightClasses?": "string",
|
||||
"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",
|
||||
"tagAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'",
|
||||
"buttons?": "Array<{text: string, onClick?: () => void, href?: string}>",
|
||||
"buttonAnimation?": "'none' | 'opacity' | 'slide-up' | 'blur-reveal'",
|
||||
"textboxLayout": "'default' | 'split' | 'split-actions' | 'split-description' | 'inline-image' (required - 'inline-image' uses titleSegments for rich text with images)",
|
||||
"useInvertedBackground": "boolean",
|
||||
"ariaLabel?": "string (default: 'Feature section')",
|
||||
"className?": "string",
|
||||
"containerClassName?": "string",
|
||||
"cardClassName?": "string",
|
||||
"textBoxTitleClassName?": "string",
|
||||
"textBoxTitleImageWrapperClassName?": "string - For styling image wrapper in inline-image layout",
|
||||
"textBoxTitleImageClassName?": "string - For styling images in inline-image layout",
|
||||
"textBoxDescriptionClassName?": "string",
|
||||
"cardTitleClassName?": "string",
|
||||
"cardDescriptionClassName?": "string",
|
||||
"gridClassName?": "string",
|
||||
"carouselClassName?": "string",
|
||||
"controlsClassName?": "string",
|
||||
"textBoxClassName?": "string",
|
||||
"textBoxTagClassName?": "string",
|
||||
"textBoxButtonContainerClassName?": "string",
|
||||
"textBoxButtonClassName?": "string",
|
||||
"textBoxButtonTextClassName?": "string",
|
||||
"itemContentClassName?": "string"
|
||||
},
|
||||
"usageExample": "<FeatureCardTwentyNine features={[{ title: 'Analytics', description: 'Track performance with detailed insights', imageSrc: '/feature.jpg', titleIconSrc: '/icon.jpg', buttonText: 'Learn More', buttonHref: 'analytics' }]} title=\"Our Features\" description=\"Discover what makes us different\" textboxLayout=\"default\" gridVariant=\"uniform-all-items-equal\" animationType=\"slide-up\" useInvertedBackground={false} />",
|
||||
"do": [
|
||||
"Use for feature showcases with action buttons",
|
||||
"Use for capability displays with brand icons",
|
||||
"Requires features[]",
|
||||
"Requires titleSegments?[]",
|
||||
"Requires buttons?[]"
|
||||
],
|
||||
"dont": [],
|
||||
"editRules": {
|
||||
"textOnly": true,
|
||||
"layoutLocked": true,
|
||||
"styleLocked": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user