Your privacy choices

We use cookies and similar technologies. The necessary ones keep the site working. With your permission we would also use others, which you can review in the settings. You can change your mind at any time.

LW

last-word-ui

@particle-academy/last-word-ui

A read-only, paged React viewer for a last-word Doc that draws it as the pages it prints on: paper size and orientation, automatic breaks by content height, header and footer bands at Word's distances with live {page}/{pages}, footnotes at the foot of their page, and tables split by row with the header repeated. It scales to fit a narrow panel and never reflows. Pairs with particle-academy/last-word (PHP) or @particle-academy/last-word (Node).

UI surfaceTS 1 components
UI surface
1 components, each with a live demo, props table, and source.
ButtonlivebetaCardRK
$npm install @particle-academy/last-word-ui

Components

1 component · click any tile for a full demo, source, and install snippet.

DocViewerOpen →
Statement of account, page 1 of 1
Paged, read-only preview of a last-word Doc. Takes the JSON a last-word reader returns, paginates by measured height, and scales whole pages to fit. Stable data-page / data-block / data-footnote handles; links, images and colours from the document are sanitised.
What next
Click any component for a live demo, props, and source — or install the package and go.