Homecomponentsinformational
Alpha
This component is in development. There could be breaking changes made to it in a non-major release of Prism. Please use with caution.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; }