# LightboxComponent

Shows one picture at full screen, with a caption and arrows to the next one.

```java
GridComponent<Shot> grid = add(new GridComponent<>(at(new Box("shots", 10, 10, 280, 0)), 4, 40, 4, 4, shots,
        Picture.cells(Shot::picture, Shot::name), shot -> viewer.open(this, shots.indexOf(shot))));
// Last, so that it is drawn on top and offered every input first, as a dialog.
viewer = add(new LightboxComponent(bounds()).pictures(shots.stream().map(Shot::picture).toList()));
```

## Variants

- Grid
- Open

Page: https://minuit.dryaides.com/components/lightbox.html
