Components
Blocks
- Gift Certificate
- Event Agenda
- Event Ticket
- 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/takumi/listUsage
import { Component } from "@angular/core";
import { PdfList } from "@/components/pdf/list/list";
import type { ListItem } from "@/components/pdf/list/list.types";
import { PdfcnThemeProvider } from "@/components/pdf/theme-provider";
import {
TakumiDocument,
TakumiPage,
} from "@/lib/pdf-primitives";
@Component({
imports: [TakumiDocument, TakumiPage, PdfcnThemeProvider, PdfList],
template: `
<takumi-document>
<takumi-page size="A4">
<pdf-theme-provider>
<pdf-list variant="bullet" [items]="items" />
</pdf-theme-provider>
</takumi-page>
</takumi-document>
`,
})
export class ListDemo {
protected readonly items: ListItem[] = [
{
description: "Match all components to the design specification.",
text: "Design system alignment",
},
{
description: "Build PDF-native components for both renderer bases.",
text: "Component implementation",
},
{
description: "Cover all variants and edge cases.",
text: "Write unit tests",
},
];
}Variants
<pdf-list variant="numbered" [items]="items" />
<pdf-list variant="checklist" [items]="checklistItems" gap="md" />API Reference
PdfList
| Input | Type | Default |
|---|---|---|
items |
ListItem[] |
- |
variant |
'bullet' | 'numbered' | 'checklist' | 'icon' | 'multi-level' | 'descriptive' |
'bullet' |
gap |
'xs' | 'sm' | 'md' |
'sm' |
noWrap |
boolean |
false |
style |
Style |
- |