Docs/DataTable
data@pdfcn-vue/data-table

DataTable

Column-driven data table with compact styles and footers.

Installation

Terminal

npx shadcn-vue@latest add @pdfcn-vue/data-table

Usage

Example

<DataTable :columns="columns" :rows="rows" :footer="footer" />

Props

PropTypeDefaultDescription
columnsDataTableColumn[]—Column definitions (key, label, width, align).
rowsRecord<string, unknown>[]—Row data matching column keys.
footerDataTableFooter—Optional footer totals row.
densebooleanfalseTighter row padding.

Live preview

The gallery uses a shared document. Change its theme in the theme builder to compare tokens.

DataTable in a document
Rendered with Forme in your browser.
Browser render

Rendering the PDF…

Vue SFC → Uint8Array

Source files

Registry paths
Files installed under components/pdf.
  • forme/components/DataTable.vue
  • forme/components/data-table.types.ts

Edit the theme tokens

Try the theme builder