Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
npm install @cordel/react-docx
pnpm add @cordel/react-docx
yarn add @cordel/react-docx
bun add @cordel/react-docx
@types
{ "compilerOptions": { "jsx": "react-jsx", "moduleResolution": "bundler" } }
import { Document, Section, Paragraph, render } from "@cordel/react-docx"; const Doc = () => ( <Document> <Section> <Paragraph>It works.</Paragraph> </Section> </Document> ); await render(<Doc />, "./test.docx");
npx tsx test.tsx
test.docx
Was this page helpful?