Skip to content
VistaView v2

Installation

npm version

VistaView is a lightweight image lightbox library that can be installed via npm or used directly from a CDN.

npm install vistaview

For quick prototyping or non-bundler environments, use the UMD build via CDN. Use these URLs for the latest published version:

<link rel="stylesheet" href="https://unpkg.com/vistaview/main/dist/style.css" />
<script src="https://unpkg.com/vistaview/main/dist/vistaview.umd.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vistaview/main/dist/style.css" />
<script src="https://cdn.jsdelivr.net/npm/vistaview/main/dist/vistaview.umd.js"></script>

VistaView is lightweight and optimized for production. Bundle sizes are for v2:

  • Core Library (ESM): 0.71 KB (0.24 KB gzip)
  • Core Library (UMD): 40.16 KB (10.73 KB gzip)
  • CSS: 7.71 KB (1.80 KB gzip)

VistaView works in all modern browsers:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

VistaView provides official bindings for popular frameworks. Each integration ships a component (recommended) and a hook/composable for more advanced use cases:

  • ReactVistaView component + useVistaView hook, exports VistaViewProps and VistaComponentRef types
  • Vue 3VistaView component + useVistaView composable, exports VistaViewProps and VistaComponentRef types
  • SvelteVistaView component + useVistaView hook, exports VistaViewProps and VistaComponentRef types
  • SolidVistaView component + useVistaView hook, exports VistaViewProps type
  • Vanilla JS – Direct vistaView() API, no wrapper needed

All framework packages are imported from the same vistaview package using subpath exports:

import { VistaView, useVistaView } from 'vistaview/react';
import { VistaView, useVistaView } from 'vistaview/vue';
import { VistaView, useVistaView } from 'vistaview/svelte';
import { VistaView, useVistaView } from 'vistaview/solid';
GitHubnpmllms.txtContext7

© 2026 • MIT License