Semaine de lancement50 % sur un an d’AuteurVoir les offres
EspacesPasser à Pro
Tous les composants

Photo viewer Pro

Tap a photo and it grows out of the grid. Swipe for the next; drag down and it shrinks, follows you, and flies home.

Ouvrir dans l’éditeur
PhotosRecents

Tap a photo. Swipe sideways, or drag down to close.

Caractère
Joueur

Ajoutez-le à votre app

$npx velvo add photo-viewer

Pour Claude Code, Cursor ou tout projet avec un terminal.

À utiliser pour

  • Galleries, product photos, attachments.

Pas pour

  • Single images that don’t need zoom.

Props

Lues dans le TypeScript du composant lui-même, donc toujours à jour.

PropTypePar défaut
photosObligatoire{ id: string; src: string; alt: string }[]

Améliorez-le avec une skill

Ajoutez-en une à votre agent et il utilisera Photo viewer comme prévu.

Motion with weightGratuit

Keeps its springs and press feel intact when your agent wires it into your app.

$npx velvo skill velvo-motion
Lire la skill
Empty, loading and error statesPro

Designs its empty, loading and error moments, the ones that usually get forgotten.

Incluse dans ProLire la skill

Specs

Category
Drag and drop
Tier
Pro
Built with
React and TypeScript
Files
17
Size
379 KB
Needs
framer-motion
Install
npx velvo add photo-viewer
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo Pro licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

drag and dropgesturemediaproreact
SuivantToast