Sanity App SDK
    Preparing search index...

    Interface PreviewValue

    Represents the set of values displayed as a preview for a given Sanity document. This includes a primary title, a secondary subtitle, an optional piece of media associated with the document, and the document's status.

    interface PreviewValue {
        _status?: { lastEditedDraftAt?: string; lastEditedPublishedAt?: string };
        media?: null | PreviewMedia;
        subtitle?: string;
        title: string;
    }
    Index

    Properties

    _status?: { lastEditedDraftAt?: string; lastEditedPublishedAt?: string }

    The status of the document.

    Type declaration

    • OptionallastEditedDraftAt?: string

      The date of the last draft edit

    • OptionallastEditedPublishedAt?: string

      The date of the last published edit

    media?: null | PreviewMedia

    An optional piece of media representing the document within its preview. Currently, only image assets are available.

    subtitle?: string

    A secondary line of text providing additional context about the document.

    title: string

    The primary text displayed for the document preview.