data
@pdfcn-vue/data-tableDataTable
Column-driven data table with compact styles and footers.
Installation
Terminal
npx shadcn-vue@latest add @pdfcn-vue/data-tableUsage
Example
<DataTable :columns="columns" :rows="rows" :footer="footer" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| columns | DataTableColumn[] | — | Column definitions (key, label, width, align). |
| rows | Record<string, unknown>[] | — | Row data matching column keys. |
| footer | DataTableFooter | — | Optional footer totals row. |
| dense | boolean | false | Tighter row padding. |
Live preview
The gallery uses a shared document. Change its theme in the theme builder to compare tokens.
Source files
Need the full template?
See blocks for invoices and reports composed from these primitives.