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

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

/darco-viewer/

    Package Sidebar

    Install

    npm i darco-viewer

    Weekly Downloads

    1

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    86.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • angel_darco