Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lani.ground/react-image-viewer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lani.ground/react-image-viewer

A React component for viewing images in a modal

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-45.45%
Maintainers
1
Weekly downloads
 
Created
Source

react-image-viewer

npm

Image Viewer for viewing images inside react components

Demo

Example

Viewer Example

Installation

npm install @lani.ground/react-image-viewer

// or

yarn add @lani.ground/react-image-viewer

Usage

import { ImageViewerProvider } from '@lani.ground/react-image-viewer';
import '@lani.ground/react-image-viewer/css';

<ImageViewerProvider
  controller={{
    prev: (
      <button type="button" onClick={() => console.log('prev')}>
        prev
      </button>
    ),
    next: <button type="button" onClick={() => console.log('next')}></button>,
  }}
  disabledGallery={false}
>
  ...
</ImageViewerProvider>;

Props

Nametypedescription
controller(optional){
next: JSX.Element;
prev: JSX.Element;
}
To customize the arrow, pass the element through the controller props
화살표를 커스텀하려면 JSX.Element를 controller props에 전달합니다.
disabledGallery(optional)boolean(default: false)Check to disable gallery mode (switches to single image viewer upon deactivation)
갤러리 모드를 해제할지 여부(해제시 단일 이미지 뷰어로 전환됩니다.)

Keywords

FAQs

Package last updated on 18 Jan 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc