preview-html

js/internal/ui/preview-html.ts

Static and server-driven HTML runners for preview catalogs. @internal

Functions

function previewPage( groups: PreviewGroup[], selectedKey: string | null, rawArgs: Record<string, string> = {}, actions?: Map<string, PreviewAction>, ): string

Render one preview as a complete progressively enhanced HTML page.

function createPreviewApp(groups: PreviewGroup[]): App

Build a live preview application over the existing server-view protocol.

function runPreviewHtml(options: { port?: number; hostname?: string; groups: PreviewGroup[]; }): ServeServer

Listen for a live preview application.