Files
docx-js/src/file/textbox/texbox-content/textbox-content.ts

9 lines
392 B
TypeScript
Raw Normal View History

import { ParagraphChild } from "@file/paragraph";
import { BuilderElement, XmlComponent } from "@file/xml-components";
export const createTextboxContent = ({ children = [] }: { readonly children?: readonly ParagraphChild[] }): XmlComponent =>
new BuilderElement<{ readonly style?: string }>({
name: "w:txbxContent",
children: children as readonly XmlComponent[],
});