PDFTemplate
templates
PDF generation template (ticket, refund, payment, monthly). Layout spec only — actual rendering via react-pdf/Puppeteer.
ARIA Role: document
Demo
Demo for PDFTemplate (templates)
PDF generation template (ticket, refund, payment, monthly). Layout spec only — actual rendering via react-pdf/Puppeteer.
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
type | 'ticket' | 'refund' | 'payment' | 'monthly' | Yes | — | PDF template type |
locale | 'en' | 'fr' | No | 'en' | Display locale |
TypeScript Interface
interface PDFTemplateProps {
type: 'ticket' | 'refund' | 'payment' | 'monthly';
data: Record<string, any>;
locale?: 'en' | 'fr';
}Assertions (NASA Rule 5)
- [type]templateId must reference a registered template(NASA Rule 5)
- [validation]All data bindings (e.g., {{name}}) must be resolved before render(NASA Rule 5)
- [validation]Page count must not exceed configured maxPages(NASA Rule 5)
Usage
Import
import { Pdftemplate } from '@epasslive/design-system'Basic
<Pdftemplate />With Variants
<Pdftemplate variant="primary" size="md" />