App UI kits › Confab › Photo viewer

Photo viewer

Drag the photo down and it shrinks as the black fades; double-tap zooms where you tapped.

Photo viewer is a screen from Confab, an app ui kit with 11 screens: A chat app where a voice note is pulled into the bin when you slide away, and every bubble moves like a real one. Price: $5 for the whole pack.

Built with: drag to dismiss, double-tap zoom, shared strip.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Photo viewer props

PropTypeDefaultDescription
darkboolean
autoplayboolean
photosCfPhotos
onClose() => void

Methods on the ref

Use it in React

import ConfabMedia from './ConfabMedia';

<ConfabMedia />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Confab

Good for: Chat app UI.