Sanity Library Reference Docs
    Preparing search index...

    Type Alias UserViewComponent<TOptions>

    UserViewComponent: React.ComponentType<
        {
            document: {
                displayed: Partial<SanityDocument>;
                draft: SanityDocument | null;
                historical: Partial<SanityDocument> | null;
                published: SanityDocument | null;
            };
            documentId: string;
            options: TOptions;
            schemaType: SchemaType;
        },
    >

    User view component

    Type Parameters

    • TOptions = Record<string, any>