Project Lightbox

Thumbnails open into a detail modal through a shared-element morph — artwork flies from its tile to the hero slot while copy staggers in. Focus trapped and restored, Esc closes, ←/→ browse.

Try it: Click a tile; use ←/→ to browse and Esc to close.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/project-lightbox.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/project-lightbox. You can also copy the source into components/ui/project-lightbox.tsx (view on GitHub).

Usage

import { ProjectLightbox } from '@/components/ui/project-lightbox'

Props

Component props
PropTypeDefaultNotes
itemsPortfolioProject[]SAMPLE_PROJECTSProjects: { id, title, category, year, blurb, src?, seed?, tags?, role?, href? }. Without src, deterministic generated art is drawn from seed.
openId / onOpenChangestring | null / (id) => void—Controlled open project.
titleAs'h2' | 'h3' | 'h4' | 'p''h3'Heading element for item titles, so the page outline stays valid.
classNamestring—Extra classes merged onto the root.

Dependencies

  • motion
  • lucide-react
  • Intro Preloader

    Greeting words flick by while a big counter climbs 0→100, then the ink curtain lifts with a trailing curve that flattens as it leaves and the page settles from a slight zoom. Skippable.

  • Section Spy Nav

    Sticky in-page navigation that follows your reading position: a shared pill springs between links as sections cross the reading line, a hairline fills with overall progress, and clicks glide and…

  • Reading Progress + TOC

    A spring-smoothed reading bar and a sticky table of contents that lights the section on screen, with a live “min left” estimate — made for long-form blog posts.

  • Portfolio Footer

    A closing statement in giant display type — letters rise out of masks on scroll-in and a light follows the cursor across the glyphs — with a slow ribbon marquee, links and back-to-top.

  • Résumé Download Button

    The document glyph prints itself line by line, then drops into a tray as the file downloads and the label settles on “Saved”. Live status for screen readers.

  • Availability Badge

    A status pill with a motion language per state: “open” sends two staggered radar ripples, “limited” breathes slowly, “booked” holds still. Copy swaps on a vertical spring; optional live local clock.

See all 35 Portfolio components