Getting Started
You have two ways to get started:- Use a pre-built template. Click one of the available templates to instantly generate a widget based on a common use case.
- Type your own description. Enter a plain-language description of the widget you want to create (e.g., “a contact form with name, email, and message fields”).
What the AI Generates
When you submit a prompt or select a template, the AI generates a complete widget including:- Code — the full widget implementation ready to render.
- Schema — the data schema that defines the widget’s structure and input fields.
- Default example — a pre-populated example so you can see the widget in action immediately.
- Functions and states — relevant functions and UI states scaffolded for you automatically.
Refining Your Widget
After the initial generation, you can send follow-up messages to refine the widget. The AI Builder works as a conversation, so you can iterate naturally. Examples of refinement prompts:- “Make the button blue”
- “Add a phone number field”
- “Change the heading text to Welcome Back”
- “Remove the email validation”
Add Images to Your Widget
You can upload images directly in the Widget Builder and use them as part of your widget. This is useful for adding assets such as logos, icons, and other images. Go to Build → Widgets → AI builder and click the paperclip icon. Choose how you want to use the image before selecting the file:- Add image to widget — Uploads and hosts the image, providing a URL that can be rendered directly in your widget.
- Add design reference — Provides the image to the AI as a visual reference without adding it to the widget. Use this when you want the AI to create or modify a widget based on an existing design.
- Manage widget images — View your uploaded images, upload new ones, copy an image URL, insert an image at the current cursor position, or delete an image.
You choose whether an image is added to the widget or used as a design reference before selecting the file. Images are never hosted implicitly.
Image limits
- Up to 5 hosted images per widget.
- Supported formats: PNG, JPG, and WebP.
- Maximum file size: 5 MB per image.
- SVG files are not supported.
Undo
If a generation does not meet your needs, you can restore to the previous version. This lets you experiment freely without losing your earlier work.Use undo to roll back to the last known good version before trying a different prompt.
