--- // Hover gallery (.hover-gallery): one image on display, the others show as the pointer moves across. export interface HoverGalleryImage { src: string alt?: string } interface Props { /** one `.hover-gallery-item` per image; the first one shows by default */ images: HoverGalleryImage[] /** core/scss/ui/_hover-gallery.scss `.hover-gallery-indicators` */ showIndicators?: boolean /** sets `--tblr-hover-gallery-aspect-ratio`, e.g. "16 / 9" */ aspectRatio?: string | undefined class?: string /** remaining attributes (id, data-*, aria-*, …) are forwarded to the root element */ [key: string]: unknown } const { images, showIndicators = false, aspectRatio, class: className, ...rest } = Astro.props ---
{ images.map((image) => ( )) }