Overview
After generating your initial UI, use Edit with AI to make changes without writing code. Simply describe what you want to change, and Gemini will update your HTML/CSS accordingly.
How to Use
- 1
Open the Input panel
Click "Input" in the top toolbar or use the sidebar
- 2
Type your edit request
Describe what you want to change in natural language
- 3
Press Enter or click Edit
AI will process and update your code
Example Prompts
Styling
Layout
Content
Functionality
Creating New Pages
Use the @PageName prefix to generate entirely new pages:
// Create a new About page
@About Create this page with team members and company history
// Create a Pricing page
@Pricing Add 3 pricing tiers: Free, Pro, and Enterprise
The AI will generate a complete page matching your existing design system and automatically add it to the navigation.
Using Images
Upload images with your prompt
Click the image icon to attach reference images. The AI will incorporate them into your design or use them as visual references.
"Add this logo to the header" + [uploaded logo.png]
Database-Aware Edits
If you've connected Supabase in Project Settings, AI can generate code that fetches real data from your tables:
"Show a list of users from my profiles table with their email and join date"
→ AI will generate supabase.from('profiles').select() code
Version History
Every edit creates a new version. You can:
- View all previous versions in the sidebar
- Restore any version with one click
- Compare changes between versions
Credit Cost
Each edit request costs ~10 credits, regardless of complexity. New page generation with @PageName also costs ~10 credits.
AI Response in Chat
After each edit, the AI explains what changes it made in the chat window. This helps you understand exactly what was modified without comparing code line by line.
Done!
I've made the header sticky with a frosted glass effect. Added backdrop-blur-xl and bg-black/80. The navigation now stays visible while scrolling.