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/cardUsage
import { Component } from "@angular/core";
import { PdfCard } from "@/components/pdf/card/card";
import { PdfText } from "@/components/pdf/text/text";
import {
FormeDocument,
FormePage,
} from "@/lib/pdf-primitives";
@Component({
imports: [FormeDocument, FormePage, PdfCard, PdfText],
template: `
<forme-document>
<forme-page size="A4" [margin]="40">
<pdf-card title="Project Summary" variant="default" padding="md">
<pdf-text noMargin
>This card groups related content with a title and body area. Use
cards to visually separate sections of your PDF document.</pdf-text
>
</pdf-card>
</forme-page>
</forme-document>
`,
})
export class CardDemo {}API Reference
PdfCard
| Input | Type | Default |
|---|---|---|
title |
string |
- |
variant |
'default' | 'bordered' | 'muted' |
'default' |
padding |
'sm' | 'md' | 'lg' |
'md' |
wrap |
boolean |
false |
The card body is projected content.