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/dividerUsage
import { Component } from "@angular/core";
import { PdfDivider } from "@/components/pdf/divider/divider";
import { PdfHeading } from "@/components/pdf/heading/heading";
import { PdfText } from "@/components/pdf/text/text";
import { PdfcnThemeProvider } from "@/components/pdf/theme-provider";
import {
TakumiDocument,
TakumiPage,
TakumiView,
} from "@/lib/pdf-primitives";
@Component({
imports: [
TakumiDocument,
TakumiPage,
PdfcnThemeProvider,
PdfDivider,
PdfHeading,
PdfText,
TakumiView,
],
template: `
<takumi-document>
<takumi-page size="A4">
<pdf-theme-provider>
<takumi-view>
<pdf-heading [level]="2">Section 1</pdf-heading>
<pdf-text>Content here.</pdf-text>
<pdf-divider />
<pdf-heading [level]="2">Section 2</pdf-heading>
<pdf-text>More content.</pdf-text>
<pdf-divider variant="dashed" />
<pdf-heading [level]="2">Section 3</pdf-heading>
<pdf-text>More content.</pdf-text>
<pdf-divider variant="dotted" />
<pdf-heading [level]="2">Section 4</pdf-heading>
<pdf-text>More content.</pdf-text>
<pdf-divider label="Section Divider" />
<pdf-heading [level]="2">Section 5</pdf-heading>
<pdf-text>More content.</pdf-text>
</takumi-view>
</pdf-theme-provider>
</takumi-page>
</takumi-document>
`,
})
export class DividerDemo {}API Reference
PdfDivider
| Input | Type | Default |
|---|---|---|
spacing |
'none' | 'sm' | 'md' | 'lg' |
'md' |
variant |
'solid' | 'dashed' | 'dotted' |
'solid' |
color |
string |
- |
thickness |
'thin' | 'medium' | 'thick' |
'thin' |
label |
string |
- |
width |
string | number |
- |