Components
Blocks
- Event Agenda
- Event Ticket
- Gift Certificate
- Invoice Classic
- Invoice Consultant
- Invoice Corporate
- Invoice Creative
- Invoice Minimal
- Invoice Modern
- Lesson Plan
- Medical Intake Form
- Meeting Minutes
- Packing Slip
- Press Release
- Report Financial
- Report Marketing
- Report Operations
- Report Security
- Shipping Label
- Work Order
Rendering PDF…
Installation
$ pnpm dlx shadcn@latest add @angular-pdfcn/forme/key-valueUsage
import { Component } from "@angular/core";
import { PdfKeyValue } from "@/components/pdf/key-value/key-value";
import {
FormeDocument,
FormePage,
} from "@/lib/pdf-primitives";
@Component({
imports: [FormeDocument, FormePage, PdfKeyValue],
template: `
<forme-document>
<forme-page size="A4" [margin]="40">
<pdf-key-value direction="horizontal" divided [items]="items" />
</forme-page>
</forme-document>
`,
})
export class KeyValueDemo {
protected readonly items = [
{ key: "Invoice #", value: "INV-2026-0042" },
{ key: "Issue Date", value: "15 February 2026" },
{ key: "Due Date", value: "17 March 2026" },
{ key: "Status", value: "Unpaid", valueColor: "destructive" },
{ key: "Total", value: "$4,200.00", valueColor: "primary" },
];
}API Reference
PdfKeyValue
| Input | Type | Default |
|---|---|---|
items |
KeyValueEntry[] |
- |
direction |
'horizontal' | 'vertical' |
'horizontal' |
divided |
boolean |
false |
size |
'sm' | 'md' | 'lg' |
'md' |
labelFlex |
number |
1 |
labelColor |
string |
- |
valueColor |
string |
- |
boldValue |
boolean |
false |
noWrap |
boolean |
false |
dividerColor |
string |
- |
dividerThickness |
number |
- |
dividerMargin |
number |
- |