
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@reelkit/vue-lightbox
Advanced tools
Full-screen image and video gallery lightbox for Vue 3 with touch gestures, transitions, and slot customization
Full-screen image and video gallery lightbox for Vue 3. Horizontal swipe navigation, fullscreen toggle, opt-in video support, and four built-in transitions. ~4.0 kB gzip.
npm install @reelkit/vue-lightbox @reelkit/vue lucide-vue-next
<script setup lang="ts">
import { ref } from 'vue';
import { LightboxOverlay, type LightboxItem } from '@reelkit/vue-lightbox';
import '@reelkit/vue-lightbox/styles.css';
const open = ref(false);
const items: LightboxItem[] = [
{
src: 'https://example.com/image-01.jpg',
title: 'Mountain River',
description: 'A beautiful mountain river flowing through the forest',
width: 1600,
height: 1000,
},
];
</script>
<template>
<button @click="open = true">Open Gallery</button>
<LightboxOverlay v-model:is-open="open" :items="items" />
</template>
slideTransition, flipTransition, lightboxFadeTransition, lightboxZoomTransition (import only what you use)useVideoSlideRendererrole="dialog", aria-modal, focus trap + return--rk-lightbox-* CSS custom properties| Slot | Scope |
|---|---|
slide | item, index, size, isActive, onReady, onWaiting, onError |
controls | item, activeIndex, count, isFullscreen, onClose, onToggleFullscreen |
navigation | item, activeIndex, count, onPrev, onNext |
info | item, index |
loading | item, activeIndex |
error | item, activeIndex |
| Prop | Type | Default | Description |
|---|---|---|---|
isOpen | boolean | required | Controls overlay visibility |
items | LightboxItem[] | required | Images/videos to display |
initialIndex | number | 0 | Starting slide index |
ariaLabel | string | 'Image gallery' | Dialog aria-label |
transitionFn | TransitionTransformFn | slideTransition | Slide transition fn (built-in or custom) |
loop | boolean | false | Enable infinite loop |
enableNavKeys | boolean | true | Arrow-key navigation |
enableWheel | boolean | true | Wheel navigation |
showInfo | boolean | true | Show title/description overlay |
showControls | boolean | true | Show controls bar |
showNavigation | boolean | true | Show prev/next arrows on desktop |
| Event | Payload | Description |
|---|---|---|
close | void | Emitted when the overlay closes |
slide-change | number | Emitted after the active slide changes |
api-ready | ReelApi | Emitted with the imperative slider API |
update:is-open | boolean | Emitted on close — enables v-model:is-open |
<script setup lang="ts">
import { ref } from 'vue';
import {
LightboxOverlay,
useVideoSlideRenderer,
type LightboxItem,
} from '@reelkit/vue-lightbox';
import '@reelkit/vue-lightbox/styles.css';
const open = ref(false);
const items: LightboxItem[] = [
{ src: '/image.jpg' },
{ type: 'video', src: '/clip.mp4', poster: '/clip.jpg' },
];
const { renderSlide, renderControls, SoundProvider } =
useVideoSlideRenderer(items);
</script>
<template>
<SoundProvider>
<LightboxOverlay v-model:is-open="open" :items="items">
<template #slide="scope">
<component :is="renderSlide(scope)" />
</template>
<template #controls="scope">
<component :is="renderControls(scope)" />
</template>
</LightboxOverlay>
</SoundProvider>
</template>
| Key | Action |
|---|---|
ArrowLeft | Previous slide |
ArrowRight | Next slide |
Escape | Exit fullscreen (if active), then close the lightbox |
Docs and interactive demos at reelkit.dev/docs/vue-lightbox.
If ReelKit saved you some time, a star on GitHub would mean a lot — it's a small thing, but it really helps the project get noticed.
FAQs
Full-screen image and video gallery lightbox for Vue 3 with touch gestures, transitions, and slot customization
We found that @reelkit/vue-lightbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.