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

Common Fields

All templates share these optional fields:
string
Display title shown in the artifact header
string
Short description shown below the title
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: