Project Filter Gallery

Category chips share a sliding pill (layout animation) while the grid reflows: survivors glide to new cells, newcomers bloom in blur-to-sharp. Announces the result count.

Try it: Click a category chip — the grid re-flows.

Installation

Install with the shadcn CLI:

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

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

Usage

import { ProjectFilterGallery } from '@/components/ui/project-filter-gallery'

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.
allLabelstring'All work'Label for the show-everything chip.
value / defaultValuestring—Controlled / uncontrolled category.
onValueChange(category: string) => void—Fires when the filter changes.
onSelect(project) => void—Fires when a card is activated.
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
  • Case Study Scroll

    Problem → Process → Result as a scroll-driven story: a sticky rail fills as you read and lights the current chapter while chapters rise in with staggered key figures.

  • Project Reveal List

    An editorial project index: rows dim their siblings and nudge on hover while a tilting preview chases the cursor on a spring and unmasks with a clip-path. Touch gets inline thumbnails.

  • Before / After Slider

    Drag, tap or use the arrow keys to wipe between two states. The knob stretches while held, the reveal edge glows and the handle sweeps once on first view.

  • Particle Mesh Gallery

    An image-colored particle sphere unfolds into a portrait on tap and gathers back on double tap, with original landscape art and a quiet project index.

  • Career Timeline

    A vertical line that draws itself as you scroll with a glowing head; milestone nodes pop on springs and cards slide in from alternating sides.

  • Dealer Deck Testimonials

    Testimonials dealt like playing cards: the top card of a face-down deck slides across the table on a spring, flips face-up mid-flight and lands slightly askew on the pile. Take one back or gather…

See all 35 Portfolio components