360-react-pannellum

0.0.3 • Public • Published

Panorama viewer for react.

Pannellum is a lightweight, free, and open source panorama viewer for the web.

How to Install

npm install 360-react-pannellum --save

Alternatively you may use yarn:

yarn add 360-react-pannellum

How to Use

import React, { Component } from 'react'
import Pannellum from 'components/360-react-pannellum'
 
class Example extends Component {
  render () {
    <Pannellum
      width='100%'
      height='200px'
      imagePath='https://pannellum.org/images/alma.jpg'
      isDisplayCloseButton={true}
      closeHandler={closeAction}
      closeButtonTitle='Close'
      showZoomCtrl={false}
      showFullscreenCtrl={false}
      autoLoad />
  }
 
  const closeAction = () => {
 
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i 360-react-pannellum

Weekly Downloads

41

Version

0.0.3

License

none

Last publish

Collaborators

  • spybaby1