@rhapsodic/vuewer

Vue 3 image viewer composable
2,775
Install
npm install @rhapsodic/vuewer
Latest Version:1.4.0
Vue:3
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: intelrug

Vuewer logo

@rhapsodic/vuewer

Image viewer for Vue 3 applications.

npm version npm downloads License

Features

  • 💪  Type safe integration of Vuewer into your project
  • ✨  Viewing multiple or a single image
  • 🕹️  A useVuewer() composable to access all of vuewer methods.

Installation

With pnpm

pnpm add @rhapsodic/vuewer

Or, with npm

npm install @rhapsodic/vuewer

Or, with yarn

yarn add @rhapsodic/vuewer

Or, with bun

bun add @rhapsodic/vuewer

Usage

Import @rhapsodic/vuewer/style.css

import { createApp } from 'vue'
import '@rhapsodic/vuewer/style.css'

import App from './App.vue'

createApp(App).mount('#app')
<script setup>
import { useVuewer } from '@rhapsodic/vuewer'

const { open } = useVuewer({
  images: [
    {
      url: 'https://placehold.net/2.png',
      thumbUrl: 'https://placehold.net/3.png',
    },
    'https://placehold.net/5-600x800.png',
  ],
})
</script>

<template>
  <button @click="open">
    Open Vuewer
  </button>
</template>

images supports both raw strings and objects with thumbnail overrides: string | { url: string, thumbUrl?: string }.

Development

pnpm install
pnpm dev
pnpm test
pnpm typecheck
pnpm build
pnpm build:playground

License

MIT License

Related Packages

@rhapsodic/nuxt-vuewer

Nuxt module for viewing images

4,632 0
v-viewer

Image viewer components, directives and composables for Vue, powered by Viewer.j...

1,738,099 2,638
@cocoar/vue-document-viewer

Universal document viewer for Vue 3 — PDFs, images, and more, with annotations a...

5,423 0
@scayle/nuxt-image-provider

An image provider to handle SCAYLE-specific modifiers

99,945

Version History

Version Released Vue License
1.4.0 ^3.5.39 MIT
1.3.1 ^3.5.34 MIT
1.3.0 ^3.3.0 MIT
1.2.0 ^3.3.0 MIT
1.1.0 ^3.3.0 MIT