npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reelkit/vue-lightbox

v0.2.0

Published

Full-screen image and video gallery lightbox for Vue 3 with touch gestures, transitions, and slot customization

Readme

@reelkit/vue-lightbox

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.1 kB gzip.

Live Demo

Installation

npm install @reelkit/vue-lightbox @reelkit/vue lucide-vue-next

Quick Start

<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>

Features

  • Horizontal swipe navigation (touch, mouse, keyboard, wheel)
  • Tree-shakable transitions — slideTransition, flipTransition, lightboxFadeTransition, lightboxZoomTransition (import only what you use)
  • Fullscreen toggle with two-step Escape (exit fullscreen → close)
  • Swipe-up-to-close on mobile
  • Opt-in video support via useVideoSlideRenderer
  • Desktop prev/next arrows with boundary hiding
  • Dialog a11y: role="dialog", aria-modal, focus trap + return
  • Themeable via --rk-lightbox-* CSS custom properties

Scoped Slots

| 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 |

Props

| 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 |

Events

| 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 |

Video support (opt-in)

<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>

Keyboard Shortcuts

| Key | Action | | ------------ | ---------------------------------------------------- | | ArrowLeft | Previous slide | | ArrowRight | Next slide | | Escape | Exit fullscreen (if active), then close the lightbox |

Documentation

Docs and interactive demos at reelkit.dev/docs/vue-lightbox.

Support

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.

Star on GitHub

License

MIT