80 lines
2.7 KiB
JSON
80 lines
2.7 KiB
JSON
{
|
|
"name": "FeatureCardSixteen",
|
|
"description": "Comparison section with negative and positive cards showing contrasting features.",
|
|
"constraints": {
|
|
"textRules": {
|
|
"title": {
|
|
"required": true,
|
|
"example": "What makes us stand out",
|
|
"minChars": 2,
|
|
"maxChars": 50
|
|
},
|
|
"description": {
|
|
"required": true,
|
|
"example": "See how we compare to traditional approaches",
|
|
"minChars": 5,
|
|
"maxChars": 300
|
|
},
|
|
"tag": {
|
|
"required": false,
|
|
"example": "Why us",
|
|
"minChars": 2,
|
|
"maxChars": 30
|
|
}
|
|
},
|
|
"negativeCardRules": {
|
|
"items": {
|
|
"required": true,
|
|
"example": [
|
|
"Time-consuming processes",
|
|
"Limited scalability",
|
|
"Higher costs"
|
|
],
|
|
"minItems": 2,
|
|
"maxItems": 10,
|
|
"note": "List of negative aspects displayed with X icons"
|
|
}
|
|
},
|
|
"positiveCardRules": {
|
|
"items": {
|
|
"required": true,
|
|
"example": [
|
|
"Streamlined workflow",
|
|
"Scalable solutions",
|
|
"Better value"
|
|
],
|
|
"minItems": 2,
|
|
"maxItems": 10,
|
|
"note": "List of positive aspects displayed with Check icons"
|
|
}
|
|
}
|
|
},
|
|
"propsSchema": {
|
|
"negativeCard": "{ items: string[] } (required)",
|
|
"positiveCard": "{ items: string[] } (required)",
|
|
"animationType": "'none' | 'opacity' | 'slide-up' | 'scale-rotate' | 'blur-reveal' | 'depth-3d' (required)",
|
|
"title": "string",
|
|
"titleSegments?": "Array<{ type: 'text', content: string } | { type: 'image', src: string, alt?: string }> - For inline images in title",
|
|
"description": "string",
|
|
"textboxLayout": "'default' | 'split' | 'split-actions' | 'split-description' | 'inline-image' (required)",
|
|
"useInvertedBackground": "'noInvert' | 'invertDefault'",
|
|
"tag?": "string",
|
|
"tagIcon?": "LucideIcon",
|
|
"buttons?": "Array<{text: string, onClick?: () => void, href?: string}>",
|
|
"ariaLabel?": "string (default: 'Feature comparison section')",
|
|
"className?": "string"
|
|
},
|
|
"usageExample": "<FeatureCardSixteen negativeCard={{ items: ['Time-consuming processes', 'Limited scalability'] }} positiveCard={{ items: ['Streamlined workflow', 'Scalable solutions'] }} animationType=\"slide-up\" title=\"What makes us stand out\" description=\"See how we compare\" textboxLayout=\"default\" useInvertedBackground=\"noInvert\" />",
|
|
"do": [
|
|
"Use for feature showcases",
|
|
"Use for capability displays",
|
|
"Requires titleSegments?[]",
|
|
"Requires buttons?[]"
|
|
],
|
|
"dont": [],
|
|
"editRules": {
|
|
"textOnly": true,
|
|
"layoutLocked": true,
|
|
"styleLocked": true
|
|
}
|
|
} |