Files
56624af9-cf09-4345-b140-715…/registry/components/TeamCardTwo.json
2026-02-09 17:23:34 +00:00

106 lines
4.4 KiB
JSON

{
"name": "TeamCardTwo",
"description": "Team member card with image background, overlay info card, and social links.",
"constraints": {
"textRules": {
"title": {
"required": true,
"example": "Meet Our Team",
"minChars": 2,
"maxChars": 35
},
"description": {
"required": true,
"example": "The talented people behind our success",
"minChars": 5,
"maxChars": 250
},
"tag": {
"required": false,
"example": "Team",
"minChars": 2,
"maxChars": 30
}
},
"teamMemberRules": {
"id": {
"required": true,
"example": "1",
"minChars": 1,
"maxChars": 20
},
"name": {
"required": true,
"example": "Alisa Hester",
"minChars": 2,
"maxChars": 50,
"note": "Team member name displayed in overlay header"
},
"role": {
"required": true,
"example": "Founder & CEO",
"minChars": 2,
"maxChars": 40,
"note": "Role/title displayed in secondary-button badge"
},
"description": {
"required": true,
"example": "Former co-founder of Opendoor. Early staff at Spotify and Clearbit.",
"minChars": 10,
"maxChars": 200,
"note": "Brief bio or description"
},
"imageSrc": {
"required": true,
"example": "/team/member-1.jpg",
"note": "Image path for team member photo"
},
"imageAlt": {
"required": false,
"example": "Portrait of Alisa Hester",
"note": "Alt text for image (defaults to member name if not provided)"
},
"socialLinks": {
"required": false,
"structure": {
"icon": "LucideIcon - Any Lucide icon component (required)",
"url": "string - Social profile URL (required)"
},
"note": "Flexible social links array. Pass any Lucide icon (Twitter, Linkedin, Globe, Github, etc.) with corresponding URL. Icons display in primary-button styled circles."
}
}
},
"propsSchema": {
"members": "Array<{ id: string, name: string, role: string, description: string, imageSrc: string, imageAlt?: string, socialLinks?: Array<{ icon: LucideIcon, url: 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 (default: 'min-h-95 2xl:min-h-105')",
"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'",
"ariaLabel?": "string (default: 'Team section')",
"className?": "string"
},
"usageExample": "<TeamCardTwo members={[{ id: '1', name: 'Alisa Hester', role: 'Founder & CEO', description: 'Former co-founder of Opendoor. Early staff at Spotify and Clearbit.', imageSrc: '/team/alisa.jpg', socialLinks: [{ icon: Twitter, url: 'https://twitter.com/alisa' }, { icon: Linkedin, url: 'https://linkedin.com/in/alisa' }] }]} title=\"Meet Our Team\" description=\"Get to know the people behind our success\" textboxLayout=\"default\" animationType=\"slide-up\" useInvertedBackground={\"noInvert\"} />",
"do": [
"Use for about pages",
"Use for company information",
"Use for team pages",
"Use for staff directories",
"Requires members[]",
"Requires titleSegments?[]",
"Requires buttons?[]"
],
"dont": [],
"editRules": {
"textOnly": true,
"layoutLocked": true,
"styleLocked": true
}
}