ui-kit-htx previewGitHub
← modals

document_viewer

6 stories — source: document_viewer.greg.py

pdf

PDF embeds via <embed type=application/pdf>. Drag the title bar to move; bottom-right corner to resize.

image

html-sandboxed

Email/HTML/text load in <iframe sandbox> so untrusted content can't break out.

persistent-position

persist=True writes the panel position+size to localStorage so the consumer sees it in the same place next time.

children-as-body-json

v1.39.0-rc.3 (#138) — pass arbitrary children to use the floating-panel chrome with any kit component(s). Multi-window comparison UX: spawn one DocumentViewer per content surface, operator drags them into position.

children-as-body-erp-comparison

Same chrome as the typed-document viewers — drag, resize, close, persist — but the body is whatever the consumer drops into the bracket slot.