← @mortar-kit/admin/preview

DocPreviewPropsinterface

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

interface DocPreviewProps

Properties

collection: AnyCollection

The document's collection: its fields' labels and kinds, and its title field.

doc: Doc
children?: Element

The rendered body, shown under the fields (a collection with a body).

collections?: readonly AnyCollection[]

Every collection, to show a reference by its document's title (otherwise its slug).