Preview vs. Code
For HTML artifacts and HTML, Markdown, or SVG scripts, the Artifacts panel shows a segmented pill toggle:- An eye icon for Preview — the live, rendered view (this is the default).
- A code icon for Source — the syntax-highlighted source.

Standalone Interactive HTML
The Download menu offers HTML for any Generative UI view. This exports a single standalone.html file that re-renders the artifact fully interactive offline — open it in any browser and it works without Generate. When the export finishes you’ll see “Exported as interactive HTML.”
Custom sandboxed components can’t be exported. In that case you’ll see: “Interactive components can’t be exported — view them in the app.”
Exporting Charts and Diagrams
Charts and diagrams (the visual kind) export as images from the Download menu:- SVG — True vector output for a single chart or diagram.
- PNG / JPG — Raster images, including for composite views.