.docx files. Style with Tailwind classes. No third-party DOCX libraries.
What’s supported
- Headings (H1-H6)
- Text formatting (bold, italic, underline, strikethrough)
- Lists (ordered, unordered, nested)
- Tables (colspan, rowspan, borders, cell padding)
- Images (png, jpg, etc. with sizing and cropping)
- Links (external and internal anchors)
- Sections (headers, footers, page margins, page size)
- Page numbers
- Table of Contents
- Variables (dynamic content with
useVariableshook) - Footnotes, check boxes, watermarks, signature blocks and Markdown from data
- The company’s Word template: styles, theme, fonts and numbering from a
.dotx - Embedded fonts and document language
- Provenance and audit of edits made in Word
What’s not supported
- Charts
- Endnotes
- Multi-column layouts
- Text boxes and shapes
- Floating elements other than images at the left or right edge
- Embedded media
How it works
Same idea asreact-dom or react-native, but renders to Open XML (the format behind .docx files).
Components become document elements. Tailwind classes map to DOCX properties. The renderer handles XML generation, relationship tracking, and ZIP packaging.