Theme: Smoke
Theme: Smoke
System

Document viewer

A document on the page

A document viewer shows a statement, a contract, an invoice or an uploaded receipt in place. A PDF uses the browser’s own viewer, an image zooms, and a text file scrolls; the toolbar downloads the file or opens it in a new tab. Where a browser will not embed the file, a fallback with the download shows instead.

PDF

Statement, October 2026
Open in new tabDownload

This file can’t be shown here.

Download

Image

Receipt, 4 Nov 2026
Zoom outZoom inOpen in new tabDownload
Receipt, 4 Nov 2026

Fallback

Invoice INV-2041
Open in new tabDownload

This file can’t be shown here.

Download
tsx
// From the npm package
import { DocumentViewer } from 'rift-ds/components/DocumentViewer/DocumentViewer';

// Or as source you own, via the shadcn CLI
npx shadcn@latest add https://rift-ds.com/r/document-viewer.json