diff --git a/web/core/Carousel/CarouselImageItem.tsx b/web/core/Carousel/CarouselImageItem.tsx
index bb94cd8b4..56628d13a 100644
--- a/web/core/Carousel/CarouselImageItem.tsx
+++ b/web/core/Carousel/CarouselImageItem.tsx
@@ -1,8 +1,9 @@
import envisTwMerge from '../../twMerge'
import Image from '../../pageComponents/shared/SanityImage'
-import { ImageWithAlt, ImageWithCaptionData } from '../../types/index'
+import { ImageWithAlt, ImageWithCaptionData, LinkData } from '../../types/index'
import { DisplayModes } from './Carousel'
import { forwardRef, HTMLAttributes } from 'react'
+import GridLinkArrow from '@sections/Grid/GridLinkArrow'
type CarouselImageItemProps = {
image?: ImageWithAlt | ImageWithCaptionData
@@ -12,10 +13,21 @@ type CarouselImageItemProps = {
caption?: string
attribution?: string
active?: boolean
+ captionPositionUnderImage?: boolean
+ action?: LinkData
} & HTMLAttributes
-
export const CarouselImageItem = forwardRef(function CarouselImageItem(
- { active = false, image, caption, attribution, displayMode = 'single', className = '', ...rest },
+ {
+ active = false,
+ image,
+ caption,
+ attribution,
+ displayMode = 'single',
+ className = '',
+ action,
+ captionPositionUnderImage,
+ ...rest
+ },
ref,
) {
return (
@@ -27,49 +39,34 @@ export const CarouselImageItem = forwardRef
- {caption || attribution ? (
-
)}
>
- )
-})
+ );
+});
-export default GridLinkArrow
+export default GridLinkArrow;
\ No newline at end of file
diff --git a/web/types/imageTypes.ts b/web/types/imageTypes.ts
index 06ade2a03..a507e3e47 100644
--- a/web/types/imageTypes.ts
+++ b/web/types/imageTypes.ts
@@ -65,4 +65,6 @@ export type ImageCarouselData = {
export type ImageCarouselItem = {
id: string
+ captionPositionUnderImage?: boolean
+ action?: any
} & ImageWithCaptionData