Skip to content

Using Next Image with Thumbnail plugin #173

Discussion options

You must be logged in to vote

You can re-use the same NextJsImage component for the thumbnail, just need to specify it as a render.thumbnail render function.

<Lightbox
    open={open}
    close={() => setOpen(false)}
    slides={slides}
    plugins={[Thumbnails]}
    render={{ slide: NextJsImage, thumbnail: NextJsImage }}
/>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by igordanchenko
Comment options

You must be logged in to vote
1 reply
@igordanchenko
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #172 on August 21, 2023 11:48.