Custom thumbnails on slides #153
-
Hi I am trying to change the thumbnails for slides and hoping someone can point me in the right direction. I want to use a text value or just an alternative image. Looked around and have tried a few things but I am stumped. I was thinking it would be convenient if you could set the smallest image in your src set to be used as a thumbnail by default or the closest image in the set to a thumbnails defined dimensions. But back to the question; What would be the cleanest method to achieve this? Would you create a new module, use custom slides, or override values with a hook or something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The cleanest method to render custom thumbnail would be to use <Lightbox
render={{
thumbnail: ({ slide, rect, render, imageFit }) => ...
}}
// ...
/> https://yet-another-react-lightbox.com/plugins/thumbnails Does this answer your question? |
Beta Was this translation helpful? Give feedback.
The cleanest method to render custom thumbnail would be to use
render.thumbnail
render function.https://yet-another-react-lightbox.com/plugins/thumbnails
Does this answer your question?