
macOS Floating Dock
A magnetic dock where icons inflate near the cursor and push their siblings aside.
A React image lightbox: photos grow from their grid tile, then zoom, swipe and step through with the arrow keys.
Image Lightbox is a React and Tailwind CSS lightbox gallery that opens photos from a grid into a full-screen viewer, in Next.js or any React app. The clicked tile grows into the full photo and shrinks back on close, on Framer Motion values with no re-renders. Double tap, pinch or scroll the wheel to zoom, swipe or press the arrow keys to change photo, and pull down or press Escape to close. Focus stays inside the dialog. Reduced motion swaps movement for a short fade. Pass each image's width and height so its shape is known before it loads.
Run the following command
pnpm dlx wensity@latest add image-lightbox
npx wensity@latest add image-lightbox
yarn dlx wensity@latest add image-lightbox
bunx wensity@latest add image-lightbox
Import ImageLightbox from @/components/wensity/image-lightbox and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
import { ImageLightbox } from "@/components/wensity/image-lightbox";const images = [{ src: "/photos/stair.jpg", alt: "Spiral staircase", caption: "Spiral stair" },{ src: "/photos/house.jpg", alt: "Concrete house", caption: "Desert house" },{ src: "/photos/pool.jpg", alt: "Pool villa", caption: "Pool villa" },];export default function Example() {return <ImageLightbox images={images} columns={3} />;}
| Prop | Type | Default | Description |
|---|---|---|---|
images | LightboxImage[] | - | Photos to show. Each has src and alt, plus optional thumbSrc, caption, width, height and featured (a double-size grid tile). |
columns | 2 | 3 | 4 | 3 | Grid columns on tablets and up. Phones always get two. |
thumbnailAspect | number | 4 / 3 | Width divided by height of each grid tile. |
index | number | null | - | Controlled open photo. Pass null to close. |
defaultIndex | number | null | null | Photo that starts open when uncontrolled. |
onIndexChange | (index: number | null) => void | - | Called when the open photo changes or the lightbox closes. |
loop | boolean | true | Wrap from the last photo back to the first. |
maxZoom | number | 3 | Largest zoom, as a multiple of the fitted size. |
showThumbnails | boolean | true | Show the thumbnail filmstrip along the bottom. |
showCaption | boolean | true | Show each photo's caption under it. |
closeOnBackdrop | boolean | true | Close on a click or tap outside the photo. |
label | string | "Image gallery" | Accessible name of the dialog. |
children | ({ open }) => ReactNode | - | Replace the built-in grid with your own triggers and call open(index). |

A magnetic dock where icons inflate near the cursor and push their siblings aside.

A tag input where pills pop in as you add them and slide out on remove, closing the gap without snapping the layout.

One angled GPU sweep that travels across any placeholder geometry you wrap, never a separate shimmer stuttering per row.

A dual-layer orbit glow that soft-spins around the edge of any button or link you wrap it around, at zero layout cost.