Skip to content

<Preview> ​

<Preview> renders the current runtime with the registered renderer template.

Props ​

  • app: Runtime required

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 ERROR if no renderer template exists