JSPM

darco-viewer

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q41230F
  • License ISC

Image viewer for galleries or single images

Package Exports

  • darco-viewer

Readme

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