Inline and full-window view #139
-
I want to start off by saying I've just found your library, and I'm absolutely loving it! It seems to be leagues above most others I've seen, and fills the perfect spot between lots of easy customization and lots of features! Is your feature request related to a problem? Please describe.Not related to a problem Describe the solution you'd likeI'd like to be able to use the Describe alternatives you've consideredI've considered attempting to use two instances of the component, however, I can't seem to control them both in a way that will synchronize their state. Additional contextAn example would be Etsy, where there is the "inline" display (with thumbnails/etc), however, clicking brings up the full-size version. Inline/in the page. When clicked, the whole viewport is filled with the lightbox |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! Thank you for bringing up this interesting use case. I'd use 2 separate Lightbox instances in this case. Does this look like the experience you want to implement? https://codesandbox.io/p/sandbox/yet-another-react-lightbox-136-jjmq8z?file=%2Fsrc%2FApp.tsx There is an option to use the same lightbox, but I'm pretty sure there will be visible page content layout shift when the lightbox opens/closes. https://codesandbox.io/p/sandbox/yet-another-react-lightbox-138-6wpcnj?file=%2Fsrc%2FApp.tsx |
Beta Was this translation helpful? Give feedback.
Hi there! Thank you for bringing up this interesting use case.
I'd use 2 separate Lightbox instances in this case. Does this look like the experience you want to implement?
https://codesandbox.io/p/sandbox/yet-another-react-lightbox-136-jjmq8z?file=%2Fsrc%2FApp.tsx
There is an option to use the same lightbox, but I'm pretty sure there will be visible page content layout shift when the lightbox opens/closes.
https://codesandbox.io/p/sandbox/yet-another-react-lightbox-138-6wpcnj?file=%2Fsrc%2FApp.tsx