Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Instant Print Gallery Block for React

Six drawn instant prints lying a degree off square on a faint table band, each faded and blurred until you hover, focus or tap it, with a button that develops the whole tray one print after another.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

An instant-print gallery for React with Base UI, for Dayglow Instant, an instant-camera brand. A compact header, "Develop all" and "Start over" buttons and a count ("2 of 6 developed") sit over six Polaroid-style prints that lie a degree or two off square on a faint table band, which ends the block. Four of the prints start faded and blurred, as instant film does in its first seconds, and two are already up. Hover it with a mouse, focus it or tap it and the picture sharpens over a second and a half while the print straightens; "Develop all" brings the whole tray up one print after another, 150 ms apart, and "Start over" puts the film back. Each print is a picture on card-coloured paper with its title, place and date written in the margin. The pictures are drawn, not photographed: a small kit of scenes (hills, a lake, a plate on a table, a plant, a desk, a bridge) in your theme's own greys. It's built from Button and Guides, with CSS transitions and your theme's tokens for every colour. The brand, places and dates are made up for the example.

FAQ

How do I use my own photographs?

Each print in PRINTS has a title, a place, a date, a description and a scene. Add your image's address to it, then replace <Scene ratio={1} scene={item.scene} /> in PrintCard with <img alt="" className="size-full object-cover" src={…} />. The button and the caption already name the print, and the fade and blur on the wrapper work on an image just as they do on the drawing.

How does a print develop?

Each print's picture sits in a wrapper that is faded (40% opacity, blurred, low contrast) until the print's id is in the block's developed list. A CSS transition on opacity and filter does the rest, over 1.6 seconds. Hovering with a mouse, focusing the print and pressing it all add its id; touch screens use the press. "Develop all" adds every id and gives each print a --wait delay of 150 ms times its place, so they come up in turn; "Start over" empties the list.

How does it work with a keyboard?

Tab reaches each print, which develops it, and the buttons are in the header. A developed print reads out its title and what it shows; one still in the tray reads "Develop" and its title. A polite status line says "3 of 6 prints developed". Nothing depends on hover.

What happens with reduced motion?

All six prints are developed and nothing fades or straightens: the transitions are off and the tilt stays as it is. "Start over" still puts the film back, without a fade.

How does it fit on a phone?

The prints go two across, then three from sm and six from lg. There is no hover on a touch screen, so a tap develops a print, and "Develop all" does the lot.

Does it follow my theme?

Yes. The paper is your card colour, the table band a faint tint of your muted colour and every grey in the pictures is mixed from your foreground and background tokens, so the tray reads in a light theme and a dark one.

  • Pro

    A photo-booth strip of four frames on a perforated paper strip that fills one frame at a time, 3, 2, 1 and a flash for each, with a drawn pose in every frame and a button to print it again.

  • Pro

    Card Stack Gallery

    Walls and tables

    A pile of five drawn risograph prints on a framed table top: send the top one to the back, or spread the pile into a row and gather it again, with a list that says the order.

  • Pro

    An open photo album on a tinted table that opens on its cover and turns like leaves onto four spreads of drawn pictures in corner mounts, with Previous and Next, a spread counter and arrow keys.

  • Pro

    Six drawn scraps overlap at slight angles on a dot field in a framed figure: choose one to bring it to the front and straighten it, press Escape to put it back, and Shuffle through three arrangements.

  • Pro

    Eight drawn tile designs on a four by two hairline grid whose entrance order a visitor picks, row by row, column by column or from the centre, with a Replay button and everything at once under reduced motion.

  • Pro

    Mood Board Gallery

    Walls and tables

    A pinboard of twelve pieces of five kinds (pictures, paint chips, materials, words and type) pinned a degree off square, with a lens that dims the other kinds without moving anything.