Skip to content
项目

关于

React PDF 组件库,提供预构建且支持主题定制的组件,以及用于顺畅创建 PDF 文档的 CLI。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
-2
15天
0
1个月
0

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

PDFx

Beta npm

Pre-built PDF components for React. Copy them into your project, own them completely. Built on @react-pdf/renderer. No runtime dependency on PDFx.

PDFx Demo

Get started

npx pdfx-cli init
npx pdfx-cli add heading text badge

Already using shadcn? Same components, namespaced so they never collide with heading / table from shadcn/ui. Requires an existing components.json (npx shadcn@latest init first). Leave {name} as a placeholder:

npx shadcn@latest registry add @pdfx=https://getpdfx.dev/r/shadcn/{name}.json
npx shadcn@latest add @pdfx/heading @pdfx/text @pdfx/badge
import { Document, Page } from '@react-pdf/renderer';
import { Heading, Text, Badge } from './components/pdfx';

export default () => (
  <Document>
    <Page>
      <Heading level={1}>Invoice #1042</Heading>
      <Badge label="Paid" variant="success" />
      <Text>Thank you for your business.</Text>
    </Page>
  </Document>
);

Documentation

Visit getpdfx.dev for the full docs, component previews, and block templates.

Releases

Contributing

Please read the contributing guide before opening a PR.

License

MIT © Akii

Sponsors

PDFx is proudly sponsored by:

PDFx Builder

Interested in sponsoring? Open an issue to get in touch.

探索相关项目

加载中…