Configuration
Field Properties
label String
The label property defines a custom label for the Live Preview field. The default value depends on the Panel language. For English, the default label is Live Preview.
type: preview
label: Real-Time Preview
pageId String
By default, the Live Preview field displays the current page being edited in the Panel (or the home page if it is being rendered at site level). Set pageId to preview another page by its ID:
type: preview
pageId: about
On the site blueprint, that page shows the site's unsaved changes. On a page blueprint, another page renders as saved.
updateInterval Number | false
Defaults to 500 milliseconds – how long the editor pauses typing before unsaved changes rerender the preview. Anything under 250 is lifted to 250. A negative integer or any value other than an integer or false shows an error in place of the field.
To stop the preview from following your typing, set the updateInterval property to false:
type: preview
updateInterval: false
The preview still renders:
- when the field loads
- when the page is saved
- when the page or site title changes
- when files are uploaded or sorted
- when the Panel language switches
- when an editor clicks Refresh preview
interactable Boolean
Enabled by default – editors can click links and buttons inside the preview. Set it to false to turn that off – the page gets pointer-events: none, so clicks and hovers no longer reach it. A site rule that sets pointer-events with !important wins over it.
type: preview
interactable: false
aspectRatio String
The Live Preview field grows to fit the height of the Panel window. Set aspectRatio to give the preview area a fixed ratio instead.
The aspect ratio value must be a string formatted as width/height (e.g., 16/9). Any other string, 16:9 included, shows an error in place of the field.
type: preview
aspectRatio: 16/9
help String
Like other Kirby fields, the Live Preview field takes a help text. The text is displayed below the preview window and supports Kirbytext formatting.
type: preview
help: |
Shows the page with your unsaved changes as you type.