Photo Box

Tactile Japanese stationery-inspired photo box featuring frosted glass translucency, sliding paper box mechanics, fanning polaroid prints, and full-bleed image zoom.

Hover to open the box · Click any print to view it large · Click anywhere to return

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/photo-box

API Reference

PropTypeDefaultDescription
printsPhotoPrint[]DEFAULT_PRINTSUp to 3 photo prints to display inside the box slots (title, caption, src or art)
titlestring'写真箱'Headline kanji or text displayed on the frosted cover
subtitlestring'Photo Box · 3 prints'Subtext printed beneath the headline title
openbooleanundefinedOptional controlled open state for external hover or trigger controls
classNamestring''Optional CSS class overrides applied to the outer stage container
onOpenChange(open: boolean) => voidundefinedCallback invoked whenever the box opens or closes
onSelect(id: string | null) => voidundefinedCallback invoked when an individual polaroid print is inspected or closed