image viewer for galleries or single images
npm i darco-viewer
-
type
: boolean. -
default
: true.
Controls the visibility of the controls.
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>
);
}