Patrick Xin

Unsplash Gallery Dialog

Galleries 3

About

An image gallery lightbox that opens each photo in a full-screen dialog with view/download stats, a share menu, and nested sign-in or sign-up dialogs for bookmarking a photo or adding it to a collection.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Unsplash Gallery Dialog to your project and fits it to your theme.

Code

How Unsplash Gallery Dialog is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import UnsplashDialog from "@/components/ui/unsplash-gallery-dialog";

export default function DialogDemo() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center p-8">
      <UnsplashDialog />
    </div>
  );
}

Dependencies