.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)
What’s not supported
- Charts
- Footnotes/endnotes
- Multi-column layouts
- Text boxes and shapes
- Floating elements
- 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.