Lightbox
Full-screen image viewer with zoom and navigation.
Installation
bun add @xerobi/ui
import { Lightbox } from "@xerobi/ui/lightbox"This component is client-side. In Astro, hydrate it with a client directive.
API reference
Lightbox
| Prop | Type | Description |
|---|---|---|
| disableZoom | boolean | |
| disableVideo | boolean | |
| disableTotal | boolean | |
| disableCaptions | boolean | |
| disableSlideshow | boolean | |
| disableThumbnails | boolean | |
| disableFullscreen | boolean | |
| onGetCurrentIndex | (index: number) => void |
Hooks
useLightBox