react-gallery-carousel icon indicating copy to clipboard operation
react-gallery-carousel copied to clipboard

feat: Add onMaximizedStatusChange prop fn

Open sashko9807 opened this issue 7 months ago • 0 comments

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.

sashko9807 avatar Jan 12 '24 10:01 sashko9807