<Preview>
<Preview> renders the current runtime with the registered renderer template.
Props
app: Runtimerequired
Example
vue
<template>
<Preview :app="runtime" />
</template>
<script setup>
import { useRuntimeApp, Preview } from '@ptahjs/ui-vue';
const runtime = useRuntimeApp({ id: 've1' });
runtime.schema(pageJson);
</script>Notes
- Requires
RESOURCE_TYPE.RENDERER_CONFIG - Falls back to
PREVIEW ERRORif no renderer template exists
