Skip to content

ArtifactViewer

stable

Part-type-aware renderer for the A2A Artifact model ({artifactId, name?, parts}): text parts as a typographic block, data parts as DataList-convention key/value rows, file parts as a mediaType + uri chip (never fetched), unknown kinds as a warning row. Validation-gold accent — an artifact is enriched output. The appending prop shows a StreamingDot tail while artifact-update appends arrive.

Orchestration/Storybook ↗
import { ArtifactViewer } from "@nodus/design-system/patterns"
Loading demo…

Props

artifactrequired
Type { artifactId: string; name?: string; parts: Array<{ kind: 'text' | 'data' | 'file'; text?: string; data?: Record<string, unknown>; file?: { uri?: string; mediaType?: string } }> }Default

The A2A Artifact to render. Parts are routed by kind; unknown kinds degrade to warning rows.

appending
Type booleanDefault false

True while streaming artifact-update appends are still arriving — shows the StreamingDot tail.

semantictypebordersurfacespace
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?