--- import { Image } from "astro:assets"; import type { ImageMetadata } from "astro"; interface Props { images: (ImageMetadata | string)[]; alts: string[]; } const { images, alts } = Astro.props; ---
{images.map((img, index) => (
{typeof img === "string" ? ( {alts[index]} ) : ( {alts[index]} )}
))}
Expanded image preview