Feat/SW-1521 image gallery lightbox * feat(SW-1453): added city listing component * feat(SW-1521): added more generic types to ImageGallery and Lightbox components * feat(SW-1521): added lightbox functionality for top images * feat(SW-1521): added support for setting activeIndex on open inside Lightbox Approved-by: Fredrik Thorsson Approved-by: Chuma Mcphoy (We Ahead)
15 lines
246 B
TypeScript
15 lines
246 B
TypeScript
export interface GalleryImage {
|
|
src: string
|
|
alt: string
|
|
caption?: string | null
|
|
smallSrc?: string | null
|
|
}
|
|
|
|
export type ImageGalleryProps = {
|
|
images?: GalleryImage[]
|
|
title: string
|
|
fill?: boolean
|
|
width?: number
|
|
height?: number
|
|
}
|