Display and status
DocumentViewer
No summary has been written for DocumentViewer. Everything below is generated from the declaration shipped in 0.57.40 and describes the real contract.Public export
typescript
import { DocumentViewer } from '@happyvertical/smrt-ui/display';- Import path
@happyvertical/smrt-ui/display- Props
- 8
- Props described
- 8 of 8
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
srcstringYesURL of the file; read with `fetch`.mimeTypestringNo`application/pdf` or `image/*`. Omitted, the response's Content-Type decides.labelstringYesNames the document for assistive technology (the image alt, the page canvas).fetchtypeof globalThis.fetchNoReads the file; inject the app's authenticated fetch. Default: global `fetch`.openPdfOpenPdfNoOpens PDF bytes. Default: pdf.js via `createPdfJsOpener()`.labelsPartial<DocumentViewerLabels>NoText overrides; defaults come from the `ui` i18n catalog.idstringNoDOM id of the component root.classstringNoCSS class to apply to the component root.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.