Available Templates
Markdown
Rich text documents with full Markdown support
Chart
Interactive data visualizations
Table
Structured tabular data display
Generate downloadable PDF documents
Dynamic
Build any UI with composable components
Template Comparison
| Template | Best For | Content Type |
|---|---|---|
markdown | Documentation, reports, formatted text | Markdown string |
chart | Data visualization, analytics | Chart.js config |
table | Structured data, lists | Rows and columns |
pdf | Printable documents, exports | HTML or Markdown |
@std/dynamic | Custom UIs, dashboards, forms | Component tree |
Common Fields
All templates share these optional fields:Display title shown in the artifact header
Short description shown below the title
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 owncontent schema. See the individual template pages for detailed documentation:
- Markdown Template - Text content with Markdown formatting
- Chart Template - Chart.js configuration object
- Table Template - Column definitions and row data
- PDF Template - HTML or Markdown for PDF generation
- Dynamic Template - Composable UI components