Artifacts and frames
A frame shows your running app. An artifact shows a saved page.Make an artifact
To make an artifact, do one of these:- Ask in chat. For example: “Make an artifact with three pricing page ideas.”
- Draw one. In the toolbar at the bottom of the canvas, choose Artifact, or press A. Drag to draw a box, or click to place one.
- Use the Artifacts panel. In the left rail, choose Artifacts, then +.
Change an artifact
To change an artifact, ask the agent in chat. You can’t edit its HTML by hand.- To change it in place, say what to change: “Make the headline bigger in Artifact 2.”
- To keep the original and try something new, ask for a variation. The agent makes a separate copy beside it.
- To point at one part, click an element inside the artifact to select it, then ask.
Work with artifacts on the canvas
- Move an artifact by dragging it.
- Resize it by selecting only that artifact and dragging a handle.
- Rename it by double-clicking its title.
Build an artifact into your app
An artifact is a sketch. To make it real, hand it to the agent:- Right-click the artifact and choose Build in this project….
- The chat box fills with a request to build the artifact in your project’s code, using your existing components. Edit it if you want, then send it.
The Artifacts library
To find an artifact from any project, open Artifacts in the left rail. The library lists every artifact you’ve made, newest first.- Search by title, page name or the words on the page.
- Add to canvas, or drag a card onto the canvas.
- Inspect an artifact full-window by clicking its thumbnail. Press Escape to close it.
- Rename, Export HTML, Export PDF or Delete artifact from a card’s ⋯ menu.
Export an artifact
To share an artifact with someone who doesn’t use Onlook, export it.- HTML is one file that opens in any browser, with no server and no Onlook needed. It can be up to 20 MB.
- PDF prints the page on A4 sheets.
Where artifacts are kept
Artifacts are saved on your Mac, in Onlook’s own data folder, outside your project. They’re never committed to your repository or included in a pull request. Deleting a project doesn’t delete its artifacts.Troubleshooting
No artifacts. Draw one on the canvas or ask in chat.
No artifacts. Draw one on the canvas or ask in chat.
… is gone
… is gone
Remove machine paths, local URLs, project names and credentials before exporting.
Remove machine paths, local URLs, project names and credentials before exporting.
Use only bundled local pages, scripts, styles, PNG/JPEG images and WOFF fonts. Remove remote, encoded, missing or cyclic references.
Use only bundled local pages, scripts, styles, PNG/JPEG images and WOFF fonts. Remove remote, encoded, missing or cyclic references.
The exported HTML exceeds 20 MB. Remove large assets or split the idea before exporting.
The exported HTML exceeds 20 MB. Remove large assets or split the idea before exporting.
The artifact changed while exporting. Try again to export its current document.
The artifact changed while exporting. Try again to export its current document.
The file could not be saved. Choose another location and try again.
The file could not be saved. Choose another location and try again.
An artifact can be viewed but not changed
An artifact can be viewed but not changed