DataTable
Data displaySortable, filterable table (TanStack Table). columns [{key,label,format?}], rows are objects keyed by column key.
Props
Generated from the Zod definition. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.
| Prop | Type | Required | Description |
|---|---|---|---|
| title | string | No | Heading shown at the top of the component. |
| columns | { key, label, format?, align? }[] | Yes | Column definitions or the number of columns. |
| rows | Record<string, any>[] | Yes | Row objects keyed by column key. |
| searchable | boolean | No | - |
| pageSize | number | No | - |
Used by templates
Fixed-schema templates that include DataTable. Try them in the playground.