Problem / Motivation
The template library currently has 2 categories (Invoices and Reports) with 7 templates total. There's no representation for common document types like receipts, letters, or contracts. Components like PdfForm, Signature, Card, and KeepTogether aren't showcased in any template, making it harder for users to discover how to use them in real documents.
Proposed Solution
Add new template categories, starting with Receipts. A receipt-standard template would demonstrate a compact purchase receipt (Table, Badge for payment status, KeyValue for totals). This follows the existing template pattern (Document wrapper + ThemeProvider + inner Content component with embedded sample data).
Future categories could include:
Letters (formal correspondence — exercises Heading, Text, Link)
Contracts (NDA/service agreements — exercises PdfForm, Signature, KeepTogether, PageBreak)
Each would include: template source (.tsx), types file (.types.ts), gallery container page, and registry JSON. Happy to implement this — starting with receipts as a first PR.
Alternatives Considered
Could also start with contracts since they exercise the most underrepresented components (PdfForm + Signature), but receipts are simpler and make a better first contribution.
Area
Documentation
Additional Context
Components currently unused in templates: PdfForm, Signature, Card, Heading (standalone), Link, KeepTogether, PageBreak, Stack (standalone). New templates would showcase these and give users ready-to-use starting points.
Problem / Motivation
The template library currently has 2 categories (Invoices and Reports) with 7 templates total. There's no representation for common document types like receipts, letters, or contracts. Components like PdfForm, Signature, Card, and KeepTogether aren't showcased in any template, making it harder for users to discover how to use them in real documents.
Proposed Solution
Add new template categories, starting with Receipts. A receipt-standard template would demonstrate a compact purchase receipt (Table, Badge for payment status, KeyValue for totals). This follows the existing template pattern (Document wrapper + ThemeProvider + inner Content component with embedded sample data).
Future categories could include:
Letters (formal correspondence — exercises Heading, Text, Link)
Contracts (NDA/service agreements — exercises PdfForm, Signature, KeepTogether, PageBreak)
Each would include: template source (.tsx), types file (.types.ts), gallery container page, and registry JSON. Happy to implement this — starting with receipts as a first PR.
Alternatives Considered
Could also start with contracts since they exercise the most underrepresented components (PdfForm + Signature), but receipts are simpler and make a better first contribution.
Area
Documentation
Additional Context
Components currently unused in templates: PdfForm, Signature, Card, Heading (standalone), Link, KeepTogether, PageBreak, Stack (standalone). New templates would showcase these and give users ready-to-use starting points.