darco-viewer
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Viewer of images

image viewer for galleries or single images

darco-viewer

Installation

   npm i darco-viewer

Prop Types

controls

  • type: boolean.
  • default: true.

Controls the visibility of the controls.

Example:

import Viewer from "darco-viewer";

function App() {
  return (
    <div>
      <h1>My Gallery</h1>
      <Viewer controls={false}>
        <img
          src="./assets/img1.png"
          alt="Image of a school girl, generated by ia"
        />
        <img src="./assets/img2.png" alt="image 02" />
        <img src="./assets/img3.png" alt="image 03" />
      </Viewer>
    </div>
  );
}

Package Sidebar

Install

npm i darco-viewer

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

85 kB

Total Files

7

Last publish

Collaborators

  • angel_darco