Appearance
Function: Artifact()
Call Signature
ts
function Artifact(content: ChildBlock[]): Block;Defined in: src/renderer/blocks/index.ts:2458
Experimental
Artifact — bordered container with header (title/description/close) and a content area. Drop generated content (image, code, …) inside.
Parameters
| Parameter | Type |
|---|---|
content | ChildBlock[] |
Returns
Example
ts
Artifact({title: 'Generated image', closable: true}, [
GeneratedImage({base64: '…', mediaType: 'image/png', alt: 'logo'}),
]);Call Signature
ts
function Artifact(options: ArtifactBlockProps, content: ChildBlock[]): Block;Defined in: src/renderer/blocks/index.ts:2459
Experimental
Artifact — bordered container with header (title/description/close) and a content area. Drop generated content (image, code, …) inside.
Parameters
| Parameter | Type |
|---|---|
options | ArtifactBlockProps |
content | ChildBlock[] |
Returns
Example
ts
Artifact({title: 'Generated image', closable: true}, [
GeneratedImage({base64: '…', mediaType: 'image/png', alt: 'logo'}),
]);