{ "name": "TimelineProcessFlow", "description": "Vertical timeline with alternating media/content layout and scroll-triggered progress line animation.", "constraints": { "textRules": { "title": { "required": true, "example": "Our Journey", "minChars": 2, "maxChars": 50 }, "description": { "required": true, "example": "Discover the milestones that shaped our story", "minChars": 5, "maxChars": 300 }, "tag": { "required": false, "example": "Timeline", "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." }, "itemRules": { "structure": { "id": "string - Unique identifier displayed in number badge (required)", "content": "React.ReactNode - Custom content for the item (required)", "media": "React.ReactNode - Custom media element (image, video, etc.) (required)", "reverse": "boolean - When true, swaps media/content positions on desktop (required)" }, "note": "Fully flexible - pass any ReactNode for content and media. Common patterns: media (Image/video), content (h3 title + p description + ul list with icons)." } }, "propsSchema": { "items": "Array<{ id: string, content: React.ReactNode, media: React.ReactNode, reverse: boolean }> - Timeline items with content and media", "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)", "animationType": "'none' | 'opacity' | 'slide-up' | 'scale-rotate' | 'blur-reveal' (required - controls GSAP scroll animations with stagger effect)", "useInvertedBackground?": "'noInvert' | 'invertDefault'", "ariaLabel?": "string (default: 'Timeline process flow section')", "className?": "string" }, "usageExample": "// Wrap in ThemeProvider with smooth scrolling (ReactLenis)\n\n \n , content: <>

Foundation

Started our journey

  • Launched MVP
  • First customer
},\n { id: '2', reverse: true, media:
\n
", "do": [ "Use for process flows", "Use for roadmaps", "Use for step-by-step explanation", "Use for feature showcases", "Use for capability displays", "Use for product catalogs", "Use for e-commerce", "Requires items[]", "Requires titleSegments?[]", "Requires buttons?[]" ], "dont": [ "Do not use non-sequential content", "Do not use single item" ], "editRules": { "textOnly": true, "layoutLocked": true, "styleLocked": true } }