react-image-lightbox icon indicating copy to clipboard operation
react-image-lightbox copied to clipboard

Custom container / Not fullscreen

Open skizzo opened this issue 6 years ago • 4 comments

Is there any way to show this marvelous component not on top of everything else, but in a custom container like a div?

skizzo avatar Jul 12 '18 08:07 skizzo

Try using:

            <Lightbox
                reactModalProps={{
                    appElement: document.querySelector("#root")
                }}
            />

JulioC avatar Jul 31 '18 20:07 JulioC

@JulioC thanks, but what is that supposed to accomplish?

skizzo avatar Nov 06 '19 14:11 skizzo

If I recall correctly, you are supposed to pass the element reference in appElement. In the case of the code above, it would be element #root

JulioC avatar Nov 06 '19 14:11 JulioC

Unfortunately, this property doesn't change anything about the lightbox's appearance. reactModalStyle also doesn't do anything. Wondering if this component is even maintained still..

skizzo avatar Nov 06 '19 14:11 skizzo