Installation
Getting Nuxt Easy Lightbox running is a single step: add the module. Once it’s registered, the <VueEasyLightbox /> component is available globally in every component, and its stylesheet is injected for you.
Add the module
Section titled “Add the module”The quickest way is the Nuxt CLI, which installs the package and adds it to your nuxt.config for you:
npx nuxi@latest module add nuxt-easy-lightboxManual install
Section titled “Manual install”If you’d rather install it by hand, add the package with your preferred package manager:
# pnpmpnpm add nuxt-easy-lightbox# npmnpm install nuxt-easy-lightbox# yarnyarn add nuxt-easy-lightboxThen add 'nuxt-easy-lightbox' to the modules array in nuxt.config.ts:
export default defineNuxtConfig({ modules: ['nuxt-easy-lightbox'],})No CSS import needed
Section titled “No CSS import needed”You don’t have to import any stylesheet. The module automatically adds vue-easy-lightbox’s CSS to your app and transpiles the package for SSR, so the lightbox is styled correctly the moment you use it.
Next steps
Section titled “Next steps”- Usage — show the lightbox, pass images, and handle events.
- Configuration — the full prop, event, and slot reference.