react-gallery-carousel
react-gallery-carousel copied to clipboard
feat: Add onMaximizedStatusChange prop fn
Whenever a state of isMaximized is changed, be it via ESC key or ExpandButton, send back the new status of isMaximized, in order to allow a customized behavior.
In some edge-cases one might want to render the Gallery Carousel conditionally, for example: I already have a grid to display images at smaller width, but I want to render the maximized carousel, whenever user clicks on one of the images, and close it whenever user presses ESC, or ExpandButton.