Data displayLightboxCentered

Open in Create
Search
astronomic.dev

LightboxCentered

Free

The classic: the image in the middle, prev and next at its sides, the caption under it.

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

Examples

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

  • Static
  • Interactive
  • Framed

Four photos

Click a photo, or tab to one and press Enter. Close sits at the top end and the caption under the image. From a wide viewer prev and next sit at the image's sides and the counter at the top start; on a phone prev, the counter and next make one row under the caption. Tab goes close, prev, next, as drawn.

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.