Data displayLightbox

Open in Create
Search
astronomic.dev

Lightbox

Free

To open images large over the page, with a caption and prev/next. Works on the image links you already have.

File
Lightbox.astro
Group
Data display
Kind
Interactive: inline script
Examples
1
import Lightbox from "@astronomic-dev/ui/components/Lightbox.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

The shell

Four image links in one group, and the shell with no recipe classes: close at the top end, the image, then the caption and the controls under it. Click a photo, or tab to one and press Enter. LightboxCentered and LightboxBar are recipes built on it.

main.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.