Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codesyntax/ionic-react-photo-viewer

Image viewer based on the photoswipe library adapted to Ionic React components.
https://github.com/codesyntax/ionic-react-photo-viewer

hacktoberfest image-viewer ionic ionic-react photo-viewer photoswipe react react-photo-gallery

Last synced: 2 months ago
JSON representation

Image viewer based on the photoswipe library adapted to Ionic React components.

Awesome Lists containing this project

README

        

# Ionic React Photo Viewer

##### Table of Contents

* [Demo](#demo)
* [Features](#features)
* [Installation](#installation)
* [Use example](#example)
* [Props](#props)

## [Demo](https://codesyntax.github.io/ionic-react-photo-viewer/?path=/story/example-ionphotoviewer--ion-avatar-item-example)
A react component for displaying images adapted to Ionic design.

## Features:

* Pinch-to-zoom capability.
* IonAvatar and IonThumbnail support.
* Blurred background support ([Available for Chrome and Safari](https://caniuse.com/css-backdrop-filter)).
* IonHeader integration to adapt it to the native design.

https://user-images.githubusercontent.com/26112509/168749351-b7446907-458f-424f-86c9-c5ef639353d2.mov

https://user-images.githubusercontent.com/26112509/168749387-d7bb7b4a-f968-4e63-aaa2-876527ee6a58.mov

## Installation
```bash
npm install --save @codesyntax/ionic-react-photo-viewer
```

## Use example
```tsx
// import component
import IonPhotoViewer from '@codesyntax/ionic-react-photo-viewer';

// TSX



Martin arrantzalea


Martin arrantzalea

```

## Props
* title: string
* The title of the image.
* src: string
* The source of the image in hight quality.
* licenseKey: string
* The license key of lightgallery.
* children: React.ReactNode
* Img element.