App UI kits › Confab › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
dark | boolean | ||
autoplay | boolean | ||
photos | CfPhotos | ||
onClose | () => void |
show(i: number): voiddestroy(): voidimport ConfabMedia from './ConfabMedia';
<ConfabMedia />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Chat app UI.