Free, open-source React PDF component library inspired by shadcn/ui’s copy-paste philosophy.
Built on @react-pdf/renderer for generating professional, printable PDFs directly in React/Next.js.
24+ ready-to-use, themeable components including tables, graphs, QR codes, forms, cards, badges, headings, and more.
Full code ownership — components are copied into your project for unlimited customization.
CLI support for easy installation and a growing ecosystem of PDF-specific building blocks.
Supports dynamic data, vector graphics, fillable forms, charts, and watermarks.
PDFx is a modern React component library that brings the beloved shadcn/ui workflow to PDF generation. It lets developers create beautiful, professional PDF documents by simply copying and pasting high-quality, customizable React components built on top of @react-pdf/renderer. It’s designed for frontend developers, SaaS teams, agencies, and anyone who needs to generate invoices, reports, certificates, resumes, contracts, or any data-driven PDFs without fighting with complex styling or locked-in packages. With full TypeScript support, Tailwind-like theming, and complete control over the source code, PDFx solves the pain of manually crafting PDFs — delivering clean, consistent, and brandable documents that render perfectly every time.
Copy-Paste Workflow: Components are added directly to your codebase — no black-box npm packages or runtime dependencies.
Professional Components: 24+ production-ready blocks including Table, Graph (bar/line/pie), QRCode, Badge, Card, Heading, Watermark, Form (fillable), and more.
Dynamic & Data-Driven: Seamlessly bind real data, support conditional rendering, and generate PDFs on the fly from React state or APIs.
Vector-Based Rendering: All elements (charts, QR codes, graphics) render as crisp vectors inside PDFs for perfect scaling and print quality.
Theming & Customization: Easy theming with design tokens, colors, fonts, and full control to match your brand.
CLI & Registry Support: Quick installation similar to shadcn/ui for seamless developer experience.
Fillable Forms: Printable forms with editable fields that users can fill after downloading/printing.
Live Previews & Docs: Interactive component explorer with real-time PDF previews.
True shadcn/ui-style freedom — full ownership and unlimited customization of every component.
Dramatically faster PDF development compared to raw @react-pdf/renderer.
High visual quality with vector graphics, charts, and professional layouts out of the box.
Perfect for dynamic, data-heavy documents like invoices, reports, and certificates.
Actively maintained with a growing component library and clear documentation.
Requires @react-pdf/renderer as the underlying engine (adds some bundle considerations for client-side generation).
PDF generation is server-side or client-side with limitations (e.g., no heavy browser APIs inside PDFs).
Still growing — fewer components than mature UI libraries, though focused and high-quality.
Learning curve if you’re new to @react-pdf/renderer concepts (though components abstract most of it).
Heading & Typography: Clean, consistent text styles for titles and body content.
Table: Flexible, styled tables with headers, rows, and dynamic data support.
Card: Content containers with default, bordered, and muted variants.
Badge: Small status labels, tags, and category indicators.
Graph: Embed bar, line, or pie charts as native vector graphics.
QRCode: Scannable QR codes rendered as vectors.
Form: Printable fillable form fields with labels.
Watermark: Subtle background text or logos for branding/security.
Additional blocks: Layout helpers, dividers, images, and more (24+ total).
Completely free and open-source — all core components and registry access are free.
No paid tiers or subscriptions for the main library.
Optional Pro features or premium components may be added in the future (not currently mentioned).
React / Next.js: Primary framework for generating PDFs on server or client.
@react-pdf/renderer: Core rendering engine.
shadcn/ui: Inspired workflow and easy coexistence in the same project.
Tailwind CSS: Theming and styling consistency (via custom tokens).
TypeScript: Full type safety across all components.
Dynamic data sources: Any React state, API responses, or backend data.
Yes, the entire library is free and open-source with no restrictions.
It follows the same copy-paste philosophy but for generating PDFs instead of web UIs.
Yes — PDFx is built on top of it and simplifies its usage with pre-built components.
Pre-built PDF components for React. Copy them into your project
Submit your Shadcn product to AllShadcn, get featured, and drive genuine traffic while showcasing your work to the world. Turn your creativity into revenue and begin selling today! 🚀