v0.1 public beta early access on GitHub
Home / Components / image-viewer

Image VieweriOS

Full-screen lightbox with pinch-to-zoom, double-tap zoom, pan, horizontal paging with a counter, and swipe-down to dismiss

$ npx lumioui add image-viewer
import { ImageViewer } from "@/components/ui/image-viewer/image-viewer";
Props10
open boolean
onOpenChange (open: boolean) => void
images ImageSourcePropType[] Remote or local images, paged left-to-right.
index? number Controlled index of the visible image. Omit for uncontrolled.
defaultIndex? number Uncontrolled initial image. Default 0.
onIndexChange? (index: number) => void
showCounter? boolean "N / M" counter pill. Default true (shown only with 2+ images).
showClose? boolean Close control, top right. Default true.
tapToToggleChrome? boolean Single tap shows/hides the chrome. Default true.
className? string