Skip to content

DataTable

Data display

Sortable, 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.

PropTypeRequiredDescription
titlestringNoHeading shown at the top of the component.
columns{ key, label, format?, align? }[]YesColumn definitions or the number of columns.
rowsRecord<string, any>[]YesRow objects keyed by column key.
searchablebooleanNo-
pageSizenumberNo-

Used by templates

Fixed-schema templates that include DataTable. Try them in the playground.