Skip to content

Commit

Permalink
🎨 Introduce fields and types #2610
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Nov 19, 2024
1 parent ba956f5 commit 1f4ecc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/core/Carousel/CarouselImageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ type CarouselImageItemProps = {
caption?: string
attribution?: string
active?: boolean
captionPositionUnderImage?: boolean
link?: string
} & HTMLAttributes<HTMLLIElement>

export const CarouselImageItem = forwardRef<HTMLLIElement, CarouselImageItemProps>(function CarouselImageItem(
{ active = false, image, caption, attribution, displayMode = 'single', className = '', ...rest },
{ active = false, image, caption, attribution, displayMode = 'single', className = '', link, captionPositionUnderImage, ...rest },
ref,
) {
return (
Expand Down
2 changes: 2 additions & 0 deletions web/lib/queries/common/imageCarouselFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export const imageCarouselFields = /* groq */ `
autoplay,
delay
},
captionPositionUnderImage,
link,
"designOptions": {
${background}
},
Expand Down

0 comments on commit 1f4ecc3

Please sign in to comment.