ComponentsComplex
Table
Display data in tabular format
Examples
Basic Table
{
"type": "table",
"columns": [
{
"header": "Name",
"accessorKey": "name"
},
{
"header": "Email",
"accessorKey": "email"
}
],
"data": [
{
"name": "John Doe",
"email": "john@example.com"
},
{
"name": "Jane Smith",
"email": "jane@example.com"
}
]
}Schema
interface TableSchema {
type: 'table';
columns: Array<{ header: string; accessorKey: string }>;
data: Record<string, any>[];
}