---
canonical_url: "https://kukson777.github.io/nuxt-image-viewer"
---
<u-page-hero orientation="horizontal">
<template v-slot:top="">
<hero-background>



</hero-background>
</template>

<template v-slot:headline="">
<u-button size="sm" to="https://kukson777.github.io/nuxt-image-viewer/docs/getting-started/introduction" trailing-icon="i-lucide-arrow-right" className="rounded-full,px-3,py-1,text-sm,font-semibold" color="primary" variant="subtle">

Nuxt 3 & 4 · no dependencies

</u-button>
</template>

<template v-slot:title="">

Images that open <span className="text-primary">

where they live

</span>

.

</template>

<template v-slot:description="">

A full-screen viewer for Nuxt. The image expands from its place on the page, swipes through an endless strip, zooms with a pinch, wheel or double tap — and flies back home when you drag it away.

</template>

<template v-slot:links="">
<u-button size="xl" to="https://kukson777.github.io/nuxt-image-viewer/docs/getting-started/installation" trailing-icon="i-lucide-arrow-right">

Get started

</u-button>

<install-command>



</install-command>
</template>

<hero-gallery>



</hero-gallery>
</u-page-hero>

<u-page-section>
<template v-slot:title="">

Feels like a native photo app

</template>

<template v-slot:description="">

Springs, inertia and finely tuned gesture thresholds make every swipe, pinch and throw feel right. Open the gallery above on your phone.

</template>

<feature-grid>



</feature-grid>
</u-page-section>

<u-page-section>
<template v-slot:title="">

Three ways to open an image

</template>

<template v-slot:description="">

Mark images in the template, tag any `<img>` you already have, or open a list from code.

</template>

<u-page-grid className="lg:grid-cols-3">
<u-page-card :spotlight="true" to="https://kukson777.github.io/nuxt-image-viewer/docs/guide/zoom-image">
<template v-slot:title="">

The component

</template>

<template v-slot:description="">

`<ZoomImage>` renders an image the viewer opens on click, Enter or Space — `<NuxtImg>` when Nuxt Image is installed.

</template>

<template v-slot:footer="">

```vue
<ZoomImage
  src="/photos/dawn.jpg"
  :width="2400"
  :height="1600"
  caption="Dawn"
/>
```

</template>
</u-page-card>

<u-page-card :spotlight="true" to="https://kukson777.github.io/nuxt-image-viewer/docs/guide/plain-images">
<template v-slot:title="">

Data attributes

</template>

<template v-slot:description="">

No component needed: tag the images you already render, from a CMS or Markdown, and group them by a container.

</template>

<template v-slot:footer="">

```html
<article data-image-viewer-group>
  <img
    src="/photos/dawn.jpg"
    data-image-viewer
  >
</article>
```

</template>
</u-page-card>

<u-page-card :spotlight="true" to="https://kukson777.github.io/nuxt-image-viewer/docs/guide/open-from-code">
<template v-slot:title="">

From code

</template>

<template v-slot:description="">

`useImageViewer()` opens any list — with page thumbnails to fly from, or without them, with a fade.

</template>

<template v-slot:footer="">

```ts
const viewer = useImageViewer()

viewer.open(photos, 2, {
  loop: false,
})
```

</template>
</u-page-card>
</u-page-grid>
</u-page-section>

<u-page-section>
<template v-slot:title="">

Make it yours

</template>

<template v-slot:description="">

Pick colours and shapes, switch controls and behaviour, then preview the result and copy the code.

</template>

<theme-builder>



</theme-builder>
</u-page-section>

<u-page-section>
<cta-banner>



</cta-banner>
</u-page-section>

## Resources for Agents

- [API catalog: every service document this site publishes](https://kukson777.github.io/nuxt-image-viewer/.well-known/api-catalog)
- [Sitemap (XML)](https://kukson777.github.io/nuxt-image-viewer/sitemap.xml)
- [Sitemap (Markdown): every page on the site](https://kukson777.github.io/nuxt-image-viewer/sitemap.md)
- [llms.txt: index of the documentation for LLMs](https://kukson777.github.io/nuxt-image-viewer/llms.txt)
- [llms-full.txt: the full documentation as a single file](https://kukson777.github.io/nuxt-image-viewer/llms-full.txt)
- [OpenAPI document: every route this site serves to agents](https://kukson777.github.io/nuxt-image-viewer/openapi.json)


## Sitemap

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