Mock Data
A mock data file contains the data used across your pages and components. We keep this data separate from other files to create a more maintainable and scalable codebase. This separation provides benefits during code export and integration. When you need to update content, you can simply modify the mock data file. Here’s an example:Components
Components are the building blocks of design—reusable pieces that make up pages and products. We start with components to ensure modularity, reusability, and scalability. Each component serves a specific purpose, making code management easier and reducing duplication while maintaining consistency. Common components include sidebars, headers, hero sections, charts, and info cards, etc. Here are some examples:- Creating components enables powerful prompts like “Create 5 different chat components for my AI agent product,” making it easy to explore various visual interfaces and user flows.