Learn how to structure clear prompts for components, pages, and full apps. Covers prompt anatomy, examples, and iteration tips.
Prompts are how to tell Meku what to build. The clearer the prompt, the closer the output matches your intent.
This page explains how to write effective prompts for components, pages, and full applications, with examples you can copy and adapt.
Before writing prompts, it helps to know the common elements that produce reliable results.
A good prompt usually includes:
Defining these parts makes your prompts precise and reduces unexpected output.
Examples show how clear prompts translate directly into usable code.
Create a hero section with a headline, subheading, and call-to-action buttonOutput: A React component styled with Tailwind, responsive, and ready to edit.
Build a landing page with hero, navbar, three feature cards, pricing section, and footerOutput: A complete React page with multiple sections, production-ready.
Create a dashboard layout with a fixed sidebar, top navbar, and grid of analytics cardsOutput: A responsive layout with navigation and analytics components.
Build a login form with email and password fields, a remember me checkbox, and a submit buttonOutput: A styled React form with Tailwind classes, responsive, and accessible.
Create a hero section with a headline: "Build faster with Meku", subheading: "AI-generated React apps in minutes", and a primary buttonThese tips keep prompts actionable and prevent vague or generic results.
Iteration ensures complex builds stay organized and manageable.
Break large tasks into smaller steps.
Create a landing page with a hero and a navbarAdd three pricing cards with Free, Pro, and Enterprise plansAdd a testimonials section with three customer quotesThis makes the output easier to control, refine, and expand without breaking the existing structure.
Recognizing mistakes helps avoid wasted tokens and poor results.
Too vague
Build a websiteProduces unclear or incomplete output.
Better
Build a portfolio website with a hero, project grid, and contact formToo complex in one step
Create a full SaaS app with auth, dashboard, charts, payments, and notificationsMay result in unorganized code.
Better
Step 1: Build login and signup pages
Step 2: Add dashboard layout
Step 3: Add analytics cards and payment formBy avoiding these pitfalls, prompts remain structured and reliable.