Overview of react-photo-view features
masterreact-photo-view is a lightweight (7KB Gzipped) image preview component with the following capabilities:
- Touch Gestures: Supports dragging, panning, physics-based sliding, and pinch-to-zoom.
- Smooth Animations: Seamless transitions for opening, closing, rebounding, and edge-touching.
- Adaptive Layout: Images automatically adapt to an appropriate initial size and resize dynamically.
- Custom Content: Supports previewing
<video />or any arbitraryHTMLelements. - Keyboard Navigation: Fully optimized for desktop users.
- Extensibility: Supports custom node extensions for features like full-screen preview, rotation controls, and image descriptions.
- Developer Friendly: Built with
typescriptand supports Server-Side Rendering (SSR).