Props
Theme per document
theme takes values in Tailwind’s theme.extend shape and adds them to the project’s tailwind.config. Use it when documents for different clients need different brand colors or fonts:
#0b5fff or #abc). Themes are per render, so documents rendered at the same time with different themes do not affect each other.
Metadata
created and modified dates are written only when you pass them, so the same input always produces the same file.
Language
<Text lang="en-US">.
Custom properties
ReactDocx. are reserved for provenance.
Watermark
Base document and fonts
Word settings
trackChangesturns on Review > Track Changes, including formatting changes, so edits made after generation are recorded.updateFieldsOnOpen(defaulttrue) makes Word refresh the table of contents, page references and sequence numbers when the document opens. Word asks the reader to confirm. Set it tofalseif the prompt is unwanted; the fields then keep the values React DOCX computed until someone updates them.
