Make an artifact
There are three ways to make an artifact:- 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.
- In the left rail, choose Artifacts, then +.
Change an artifact
To change an artifact, ask the agent in chat. Your code stays as it is until you build the artifact into it.- To change it in place, say what to change, such as “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.
- To change a few words yourself, double-click the text in the artifact, type, and press Return to save. Onlook tells you when text can’t be edited this way.
Work with artifacts on the canvas
Drag an artifact to move it. To resize it, select only that artifact and drag a handle. To rename it, double-click its title. Right-click an artifact for more:Build an artifact into your codebase
When you want an artifact in your product, the agent can build it in your project’s code.- 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.
Use artifacts across projects
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.
- To put one on the canvas, choose Add to canvas, or drag its card onto the canvas.
- To see one full-window, click its thumbnail. Press Escape to close it.
- A card’s ⋯ menu has Rename, Export HTML, Export PDF and Delete artifact.
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, without a server or Onlook. It can be up to 20 MB.
- PDF prints the page on A4 sheets.
- PNG and JPEG save a picture of the page.
- Select one or more artifacts, right-click and choose Export….
- The Export panel opens with HTML selected. To add PDF, PNG or JPEG, choose Add a filetype.
- Choose the export button at the bottom of the panel, and pick where to save each file.
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. An artifact keeps working when your app stops and after you restart Onlook. If you delete the project an artifact was made in, the artifact stays in your library. An artifact can’t reach the internet or your dev server.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.
Made in a newer Onlook version
Made in a newer Onlook version