Appearance
Function: pdfNative()
ts
function pdfNative(props: PDFnativeBlockProps): Element;Defined in: src/UI/blocks/pdfNative.tsx:44
Parameters
| Parameter | Type | Description |
|---|---|---|
props | PDFnativeBlockProps | Configuration object |
Returns
Element
Deprecated
Use the equivalent block from @matterway/sdk/UI instead. This block targets the old showUI path and will be removed when src/UI/ is dropped.
Native PDF viewer block — renders the PDF in an <iframe> using the browser's built-in PDF plugin (no pdf.js). Use this when you want the native browser viewer instead of the custom pdf viewer.
Example
pdfNative({
name: 'pdf-viewer',
src: 'base64-encoded-pdf-string'
});