Menu

Chat SDK adds table rendering and streaming markdown - Vercel
📰
0

Chat SDK adds table rendering and streaming markdown - Vercel

Vercel News·Malte Ubl·4 days ago
#whzFO9Nz
#vercel#chat#markdown#tables#table#across
Reading 0:00
15s threshold

Chat SDK now renders tables natively across all platform adapters and converts markdown to each platform's native format during streaming. The Table() component is a new card element in Chat SDK that gives you a clean, composable API for rendering tables across every platform adapter. Pass in headers and rows, and Chat SDK handles the rest. import { Table } from "chat" ; await thread . post ( Table ( { headers : [ "Model" , "Latency" , "Cost" ] , rows : [ [ "claude-4.6-sonnet" , "1.2s" , "$0.003" ] , [ "gpt-4.1" , "0.9s" , "$0.005" ] , ] , } ) ) ; The adapter layer converts the table to the best format each platform supports. Slack renders Block Kit table blocks, Teams and Discord use GFM markdown tables, Google Chat uses monospace text widgets, and Telegram converts tables to code blocks. GitHub and Linear already supported tables through their markdown pipelines and continue to work as before. Plain markdown tables (without Table() ) are also converted through the same pipeline.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More