react-photoswipe-component

WebJar for react-photoswipe-component

Лицензия

Лицензия

MIT
Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

react-photoswipe-component
Последняя версия

Последняя версия

1.0.13
Дата

Дата

Тип

Тип

jar
Описание

Описание

react-photoswipe-component
WebJar for react-photoswipe-component
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/GopherLabsLtd/react-photoswipe

Скачать react-photoswipe-component

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-photoswipe-component/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-photoswipe-component</artifactId>
    <version>1.0.13</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-photoswipe-component/
implementation 'org.webjars.npm:react-photoswipe-component:1.0.13'
// https://jarcasting.com/artifacts/org.webjars.npm/react-photoswipe-component/
implementation ("org.webjars.npm:react-photoswipe-component:1.0.13")
'org.webjars.npm:react-photoswipe-component:jar:1.0.13'
<dependency org="org.webjars.npm" name="react-photoswipe-component" rev="1.0.13">
  <artifact name="react-photoswipe-component" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-photoswipe-component', version='1.0.13')
)
libraryDependencies += "org.webjars.npm" % "react-photoswipe-component" % "1.0.13"
[org.webjars.npm/react-photoswipe-component "1.0.13"]

Зависимости

compile (4)

Идентификатор библиотеки Тип Версия
org.webjars.npm : isomorphic-style-loader jar [4.0.0,5)
org.webjars.npm : photoswipe jar [4.1.2,5)
org.webjars.npm : react jar [16.0.0,17)
org.webjars.npm : webpack jar [3.8.1,4)

Модули Проекта

Данный проект не имеет модулей.

React PhotoSwipe Component npm npm

A React component for PhotoSwipe lightbox

Installation

NPM

npm install --save photoswipe react-photoswipe-component

How to Use:

JS:

import { PhotoSwipeGallery } from 'react-photoswipe-component'
import "../node_modules/photoswipe/dist/photoswipe.css"
import "../node_modules/photoswipe/dist/default-skin/default-skin.css"
import "../node_modules/react-photoswipe-component/src/style.css"

const PHOTO_ITEMS = [
    {
        src: 'http://via.placeholder.com/800x394',
        w: 800,
        h: 394,
        caption: "Test Cap"
    },
    {
        src: 'http://via.placeholder.com/1200x900',
        w: 1200,
        h: 900,
        caption: "Caption 123"
    }
];

class SwipePhotoTest extends React.Component {
  render() {    
    return (
      <div>
        <PhotoSwipeGallery items={PHOTO_ITEMS} />
        
        {/* Or you can try this */}
        
        <PhotoSwipeGallery items={PHOTO_ITEMS}>
            Open Gallery
        </PhotoSwipeGallery>
      </div>
    )
  }
}

export default SwipePhotoTest

Future Goals:

  • Automatic image resizing and responsiveness
  • Autoplay
  • SEO (Schemas)
org.webjars.npm

Gopher Labs

Scalable Web/Mobile Application Approaches

Версии библиотеки

Версия
1.0.13