ChemPal Documentation - v1.6.0
    Preparing search index...

    Props for ProductImageModal.

    interface ProductImageModalProps {
    /** Whether the gallery modal is visible. */
    open: boolean;
    /** Invoked on backdrop click, Esc, or the close control. */
    onClose: () => void;
    /** The loadable images to browse, in display order. */
    images: ResolvedProductImage[];
    /** Product title, used for the dialog label and image alt fallback. */
    title: string;
    /** Index (into `images`) to show first, captured when the modal opens. */
    initialIndex: number;
    }
    interface ProductImageModalProps {
        open: boolean;
        onClose: () => void;
        images: ResolvedProductImage[];
        title: string;
        initialIndex: number;
    }
    Index

    Properties

    open: boolean

    Whether the gallery modal is visible.

    onClose: () => void

    Invoked on backdrop click, Esc, or the close control.

    The loadable images to browse, in display order.

    title: string

    Product title, used for the dialog label and image alt fallback.

    initialIndex: number

    Index (into images) to show first, captured when the modal opens.