Artifact Panel
A side panel for a generated document or code file with Preview and Source tabs, a version stepper with a changes view, copy, download and a streaming writing state.
Preview
Launch plan
launch-plan.mdWriting
v3/3
Install
Pro source requires Pebble Pro. Try the full preview above.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title / filename | string | — | Panel title, and the file name used for download and the header. |
| kind | "document" | "code" | "document" | Documents preview light Markdown; code previews numbered source. |
| versions | ArtifactVersion[] | — | { id, content, note? }, oldest first. |
| version / defaultVersion | number | newest | 0-based version shown; onVersionChange reports steps. |
| streaming | boolean | false | The newest version is being written: caret, Writing status, actions held. |
| defaultTab | "preview" | "code" | "preview" | Tab shown first. |
| renderPreview / onClose | (content) => ReactNode / () => void | — | Custom preview renderer; close button handler. |
Pro component
Try the full preview above. Editable source and build guides require Pebble Pro.
