Homecomponentsinformational
MediaPreview
A modal dialog that displays media slideshow.
Use MediaPreview to overlay media previews on the current page in a modal dialog.
Displayed Media
Use currentIndex to set the media that should be previewed when opened.
Sidebar
Use sidebar to set the sidebar data.
Unoptimized images
Use the unoptimized property to disable Next.js image optimization.
API
medias
Required
Media[]
open
true
false
onClose
(() => void)
trigger
ReactNode
currentIndex
number
unoptimized
true
false
sidebar
{ title: string; content: ReactNode; }