import Viewer from "@wrnexus/viewer/components/Viewer.wrn" page FileViewerDemo { layout = "public" render = "hybrid" hydrate = "load" view {

File previews

Browse several files

Rich PDF canvas

Images, documents, media, tables, trees, vectors, and archives share the app theme and preview controls.

Image

Document

Video

Open a preview over the page

Any element with data-viewer-open opens the file in a dialog.

Covering the page

A viewer can mount already expanded, with a Close control that returns it inline.

Audio

Structured data

Spreadsheet

Vector graphic

Archive

HTML preview and source

From uploader storage

A public object serves itself; a private one resolves to a short-lived signed link.

Office documents

Presentations, OpenDocument files and RTF read in the browser; a converter, where one is installed, is preferred for page-faithful output.

Optional parser or server-side converter

Unsupported file

} style { .file-viewer-demo { display: grid; gap: 1rem; max-width: 64rem; margin: 2rem auto; padding: 1rem; } } }