Package Exports
- pdfnative-react
- pdfnative-react/package.json
Readme
pdfnative-react
Preview release.
0.1.0reserves the package name. The declarative React renderer lands in0.2.0— follow the repository for progress.
Write PDFs the way you write UIs. pdfnative-react turns declarative JSX into
real, on-device PDF documents powered by the zero-dependency
pdfnative engine — no SaaS
round-trips, your documents never leave the process.
// Coming in 0.2.0
import { Document, Page, Heading, Text, Table, usePdf } from 'pdfnative-react';
function Invoice() {
return (
<Document title="Invoice #1024">
<Page>
<Heading level={1}>Invoice #1024</Heading>
<Text>Thank you for your business.</Text>
<Table
headers={['Item', 'Qty', 'Total']}
rows={[['Pro plan', '1', '$49.00']]}
/>
</Page>
</Document>
);
}The pdfnative ecosystem
| Package | Use it for |
|---|---|
pdfnative |
The zero-dependency PDF engine — Node, browsers, Workers, Deno, Bun. |
pdfnative-react |
Declarative React/JSX components with live preview (this package). |
pdfnative-cli |
Render, sign, inspect, and verify PDFs from the shell. |
pdfnative-mcp |
Generate PDFs from Claude Desktop, Cursor, Continue, Zed. |