Skip to content

PdfViewer

Generated from front/ui/catalogue/examples/PdfViewer.json

learning · static (no JavaScript) · no children. All components: component playground.

Embedded PDF with open and download links.

Rendered from the example props below with the real component. Theme: coffee · oncall · nightsky · gravity · poland · ulam · platform · open on its own

{
"component": "PdfViewer",
"props": {
"src": "https://example.org/media/brew-chart.pdf",
"title": "Brew ratio chart"
}
}
Prop Type Required Notes
src string (href) yes PDF URL. max length 2048
title string yes Title. max length 160
id string Anchor id for in-page links (letters, digits, dashes). max length 40

What a text-only client, an unknown renderer or a plain-text channel shows for the example above.

PDF: Brew ratio chart https://example.org/media/brew-chart.pdf

A node whose props fail the schema never breaks the page: the renderer shows the plain-text fallback instead (and logs the issues in development).

{
"src": "javascript:1",
"title": "x"
}

Issues:

  • /src unsafe or empty link

Rendered as:

PDF: x javascript:1

axe-core: 8 rules passed, 0 violations, 1 need manual review. Run at build time on the server-rendered HTML in jsdom. Colour contrast and layout rules need a browser and are covered by the Playwright axe scans of the reference frontend.