npm / yet-another-react-lightbox
yet-another-react-lightbox
What changed in yet-another-react-lightbox 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
5 new APIs and options1 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inityet-another-react-lightbox 315 changes
New APIs and options 5
Adds the controller.closeOnEscape setting.
Allows portal.root to use a function provider.
Adds viewer-level configuration for reading direction.
Carousel imageProps now supports a function form.
Adds an experimental pinch zoom implementation.
Behavior and default changes 1
Zoom is now supported on custom slide types.
Fixes and other changes 9
Arguments are now passed through to the throttled callback.
Cross-origin downloads use the filename provided by the server.
Stops propagation of keyboard events that the lightbox handles.
Restores pointer events when the lightbox is nested in a modal with pointer-events:none.
RTL direction is re-detected on every render so dynamic dir changes are supported.
Fixed the counter and toolbar overlapping in RTL layouts.
Syncs the index prop during render to prevent an infinite loop.
The lightbox no longer mutates the srcSet array during render.
Improves pinch zoom accuracy.