Component props
ScreenJSONViewer accepts the same options as the JavaScript constructor, bound as props:
| Prop | Type | Default | Description |
|---|---|---|---|
document | ScreenJSONDocument | — | Pre-loaded document. |
src | string | — | URL to load from (alternative to document). |
theme | 'light' | 'dark' | 'light' | Theme. |
zoom | number | 1 | 0.5 – 2. |
lang | Lang | document default | Render language. |
page | number | 1 | Initial page (1-based). |
numbered | boolean | false | Show scene numbers. |
paginated | boolean | true | Show page numbers. |
corner | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top-right' | Menu position. |
virtual | boolean | false | Virtual scrolling. |
password | string | — | Decrypt password for encrypted content. |