Docs/Table
data@pdfcn-vue/table

Table

Semantic table primitives (header, body, row, cell, footer).

Installation

Terminal

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

Usage

Example

<Table variant="line">
  <TableHeader>…</TableHeader>
  <TableBody>…</TableBody>
</Table>

Props

PropTypeDefaultDescription
variant'line' | 'grid' | 'striped' | 'minimal''line'Table visual style.
zebraStripebooleanfalseForce zebra rows.
noWrapbooleanfalsePrevent page breaks inside the table.
columnCountnumber—Explicit column count for equal widths.
styleStyle—Merged Forme style override.

Live preview

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

Table 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/Table.vue
  • forme/components/table.types.ts

Edit the theme tokens

Try the theme builder