Sanity Library Reference Docs
    Preparing search index...

    Interface RenderPreviewCallbackProps<TLayoutKey>

    interface RenderPreviewCallbackProps<TLayoutKey = PreviewLayoutKey> {
        actions?: ReactNode | ComponentType<{ layout: TLayoutKey }>;
        children?: ReactNode;
        error?: Error;
        fallbackTitle?: ReactNode;
        isPlaceholder?: boolean;
        layout?: TLayoutKey;
        mediaDimensions?: PreviewMediaDimensions;
        progress?: number;
        schemaType: SchemaType;
        skipVisibilityCheck?: boolean;
        status?: ReactNode | ComponentType<{ layout: TLayoutKey }>;
        style?: CSSProperties;
        value: unknown;
        withBorder?: boolean;
        withRadius?: boolean;
        withShadow?: boolean;
    }

    Type Parameters

    Index

    Properties

    actions?: ReactNode | ComponentType<{ layout: TLayoutKey }>
    children?: ReactNode
    error?: Error
    fallbackTitle?: ReactNode
    isPlaceholder?: boolean
    layout?: TLayoutKey
    mediaDimensions?: PreviewMediaDimensions
    progress?: number
    schemaType: SchemaType
    skipVisibilityCheck?: boolean
    status?: ReactNode | ComponentType<{ layout: TLayoutKey }>
    style?: CSSProperties
    value: unknown
    withBorder?: boolean
    withRadius?: boolean
    withShadow?: boolean