← @mortar-kit/admin/preview

DocPreviewfunction

import { DocPreview } from '@mortar-kit/admin/preview'

function DocPreview(props: DocPreviewProps): Element

A readable preview of any document: its title, its first image large, then every other field under its label, then children (the body). <PreviewPage> shows it for collections without a layout; a layout can render it too, e.g. around a heading of its own.

Parameters

Returns

Element