Skip to main content
Module

x/docxml/mod.ts>default.fromJsx

TypeScript library for parsing and building a DOCXML file
Go to Latest
method default.fromJsx
import { default } from "https://deno.land/x/docxml@5.2.0/mod.ts";

Create a new DOCX with contents composed by this library's components. Needs a single JSX component as root, for example <Section> or <Paragragh>.

Parameters

roots: OfficeDocumentChild[] | Promise<OfficeDocumentChild[]>