---
title: "Installation"
description: "Add the module to your Nuxt app."
canonical_url: "https://kukson777.github.io/nuxt-image-viewer/docs/getting-started/installation"
---
# Installation

> Add the module to your Nuxt app.

<steps>

### Install the module

Use the Nuxt CLI — it installs the package and adds it to `modules`:

```bash [Terminal]
npx nuxt module add nuxt-image-viewer
```

Or install it with your package manager and add it yourself:

<code-group>

```bash [pnpm]
pnpm add nuxt-image-viewer
```

```bash [npm]
npm install nuxt-image-viewer
```

```bash [bun]
bun add nuxt-image-viewer
```

```bash [yarn]
yarn add nuxt-image-viewer
```

</code-group>

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['nuxt-image-viewer'],
})
```

### Mark an image

```vue [app.vue]
<template>
  <ZoomImage
    src="/photos/dawn.jpg"
    :width="2400"
    :height="1600"
    caption="Dawn over the ridges"
  />
</template>
```

That's it — click the image.

</steps>

## Requirements

- Nuxt `>=3.13`, including Nuxt 4.
- A browser with Pointer Events and the Web Animations API — every evergreen browser.

<tip>

With [Nuxt Image](https://image.nuxt.com) installed, `<ZoomImage>` renders `<NuxtImg>`: the page gets an optimized copy and the viewer opens the full image. See [ZoomImage](https://kukson777.github.io/nuxt-image-viewer/docs/guide/zoom-image#with-nuxt-image).

</tip>


## Sitemap

See the full [sitemap](https://kukson777.github.io/nuxt-image-viewer/sitemap.md) for all pages.
