Sanity Library Reference Docs
    Preparing search index...

    Interface DocumentLocationsState

    State for describing document locations or providing a message if locations are unavailable

    interface DocumentLocationsState {
        locations?: DocumentLocation[];
        message?: string;
        tone?: "positive" | "caution" | "critical";
    }
    Index

    Properties

    locations?: DocumentLocation[]

    Array of document locations

    message?: string

    Message to display if locations are unavailable

    tone?: "positive" | "caution" | "critical"

    Tone of the message