You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

next-360-image-viewer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-360-image-viewer

Display a set of images in a draggable 360 degree viewer.

1.0.4
latest
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created

Install

npm i next-360-image-viewer
# Or
yarn add next-360-image-viewer
# Or
pnpm i next-360-image-viewer

Example

import { NextImageTurntable } from 'next-360-image-viewer';

const images = [
    'https://via.placeholder.com/1920x1080?text=1',
    'https://via.placeholder.com/1920x1080?text=2',
    'https://via.placeholder.com/1920x1080?text=3',
];

export const ImageViewer = () => {
    return (
        <>
            <NextImageTurntable images={images} />
        </>
    )
}

Props

PropsTypeRequiredDefault Value
imagesstring[]undefined
initialImageIndexnumber0
movementSensitivitynumber20

FAQs

Package last updated on 10 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts