Calm motion: animations on this site only fade, with no movement
Gallery
Thumb grid + lightbox
A grid of thumbnails that open one large image at a time: stills, key visuals, a photo set. For a single strip people swipe through in place, use a Carousel.
Basic
- Give every item
alttext. Without it, thumbs and the viewer fall back to the caption or "Image 2 of 8". - The viewer is a lightbox in a modal: ← / → (and the buttons) step through, a swipe to the side steps too, and the zoom button or a double click enlarges the image. The count is announced, Esc closes, and focus returns to the thumb.
loopwraps at the ends.
Usage
ts
import { BlessGallery } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessLightboxItem[] | — | |
columns | string | "160px" | thumbnail grid column min width |
loop | boolean | true | |
labels | Partial<{ prev: string; next: string; }> | — | |
modelValue | number | -1 | index of open item, -1 = closed |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: number] |
Slots
| Name | Scope | Description |
|---|---|---|
thumb | { item: BlessLightboxItem; index: number; } |