Skip to main content
Templates define how your artifact content is rendered. Each template accepts specific content fields and produces a distinct visual output.

Available Templates

Markdown

Rich text documents with full Markdown support

Chart

Interactive data visualizations

Table

Structured tabular data display

PDF

Generate downloadable PDF documents

Dynamic

Build any UI with composable components

Template Comparison

TemplateBest ForContent Type
markdownDocumentation, reports, formatted textMarkdown string
chartData visualization, analyticsChart.js config
tableStructured data, listsRows and columns
pdfPrintable documents, exportsHTML or Markdown
@std/dynamicCustom UIs, dashboards, formsComponent tree

Common Fields

All templates share these optional fields:
title
string
Display title shown in the artifact header
description
string
Short description shown below the title
expiresIn
string
Auto-expiration duration (e.g., 1h, 7d, 30d)

Example: Choosing a Template

Scenario: You want to show quarterly sales data.
  • For a written summary → Use markdown
  • For a bar chart visualization → Use chart
  • For a detailed breakdown by product → Use table
  • For a printable report → Use pdf
  • For a full dashboard with metrics, charts, and tables → Use @std/dynamic

Template-Specific Content

Each template has its own content schema. See the individual template pages for detailed documentation: