Installation
VistaView is a lightweight image lightbox library that can be installed via npm or used directly from a CDN.
Package Manager Installation
Section titled “Package Manager Installation”CDN Installation
Section titled “CDN Installation”For quick prototyping or non-bundler environments, use the UMD build via CDN. Use these URLs for the latest published version:
jsDelivr
Section titled “jsDelivr”Bundle Sizes
Section titled “Bundle Sizes”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)
Browser Support
Section titled “Browser Support”VistaView works in all modern browsers:
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
Framework Integrations
Section titled “Framework Integrations”VistaView provides official bindings for popular frameworks. Each integration ships a component (recommended) and a hook/composable for more advanced use cases:
- React –
VistaViewcomponent +useVistaViewhook, exportsVistaViewPropsandVistaComponentReftypes - Vue 3 –
VistaViewcomponent +useVistaViewcomposable, exportsVistaViewPropsandVistaComponentReftypes - Svelte –
VistaViewcomponent +useVistaViewhook, exportsVistaViewPropsandVistaComponentReftypes - Solid –
VistaViewcomponent +useVistaViewhook, exportsVistaViewPropstype - Vanilla JS – Direct
vistaView()API, no wrapper needed
All framework packages are imported from the same vistaview package using subpath exports:
Next Steps
Section titled “Next Steps”- Follow an Integration guide for your framework
- Explore configuration options
- Learn about extensions