2.0.0 • Published 16 days ago

darco-viewer v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
16 days ago

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>
  );
}
2.0.0

16 days ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

6 months ago