Docs/KeyValue
data@pdfcn-vue/key-value

KeyValue

Aligned label/value pairs for metadata blocks.

Installation

Terminal

npx shadcn-vue@latest add @pdfcn-vue/key-value

Usage

Example

<KeyValue :items="[{ label: 'Invoice', value: 'INV-2026-003' }]" />

Props

PropTypeDefaultDescription
itemsKeyValueItem[]—Label/value pairs.
columnsnumber1Column count for the pair grid.
labelWidthnumber—Fixed label width in points.

Live preview

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

KeyValue 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/KeyValue.vue
  • forme/components/key-value.types.ts

Edit the theme tokens

Try the theme builder