@jimengio/image-viewer
TypeScript icon, indicating that this package has built-in type declarations

0.1.18 • Public • Published

Image Viewer Component

npm

for zooming/rotating images.

original: meson-display

Not yet:

  • animations
  • dragging

Usage

import { ImageViewer } from "@jimengio/image-viewer";

<ImageViewer
  visible={visible}
  imageUrl={"http://cache.house.sina.com.cn/citylifehouse/citylife/de/26/20090508_7339__.jpg"}
  onClose={() => {
    setVisible(false);
  }}
  hasLeftOne={false}
  hasRightOne={false}
  closeOnBackdrop={false}
/>;

Workflow

https://github.com/jimengio/ts-workflow

License

MIT

Package Sidebar

Install

npm i @jimengio/image-viewer

Weekly Downloads

0

Version

0.1.18

License

MIT

Unpacked Size

37.7 kB

Total Files

13

Last publish

Collaborators

  • imzshh
  • jiyinyiyong
  • rebirth