docx
Version:
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
15 lines (14 loc) • 533 B
TypeScript
import { ParagraphChild } from '../../paragraph';
import { XmlComponent } from '../../xml-components';
import { LengthUnit } from '../types';
export type IVTextboxOptions = {
readonly style?: string;
readonly children?: readonly ParagraphChild[];
readonly inset?: {
readonly top: LengthUnit;
readonly left: LengthUnit;
readonly bottom: LengthUnit;
readonly right: LengthUnit;
};
};
export declare const createVmlTextbox: ({ style, children, inset }: IVTextboxOptions) => XmlComponent;