--- /** * Figure — a picture in a section, alone across the column or as a pair. * images: { src, alt, width, height }[]; two images with pair set them side by side. * Without images, the default slot is used (for a video). */ interface Img { src: string; alt: string; width: number | string; height: number | string } interface Props { images?: Img[]; pair?: boolean; caption?: string; class?: string } const { images, pair = false, caption, class: extra } = Astro.props; ---
{images ? images.map((i) => {i.alt}) : } {caption &&
}