data
@pdfcn-vue/tableTable
Semantic table primitives (header, body, row, cell, footer).
Installation
Terminal
npx shadcn-vue@latest add @pdfcn-vue/tableUsage
Example
<Table variant="line">
<TableHeader>…</TableHeader>
<TableBody>…</TableBody>
</Table>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'line' | 'grid' | 'striped' | 'minimal' | 'line' | Table visual style. |
| zebraStripe | boolean | false | Force zebra rows. |
| noWrap | boolean | false | Prevent page breaks inside the table. |
| columnCount | number | — | Explicit column count for equal widths. |
| style | Style | — | Merged Forme style override. |
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.