Sanity App SDK
    Preparing search index...

    Interface useDocumentPreviewOptions

    interface useDocumentPreviewOptions {
        dataset?: string;
        documentId: string;
        documentType: string;
        perspective?: ReleasePerspective | ClientPerspective;
        projectId?: string;
        ref?: RefObject<unknown>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    dataset?: string
    documentId: string
    documentType: string
    perspective?: ReleasePerspective | ClientPerspective
    projectId?: string
    ref?: RefObject<unknown>

    Optional ref object to track visibility. When provided, preview resolution only occurs when the referenced element is visible in the viewport.