Gallery 62 - Grid and list view togglePro

A gallery with a segmented grid/list switch that morphs each item between a square tile and a detailed list row using shared layout animation.

About Gallery 62

A gallery with a segmented grid/list switch that morphs each item between a square tile and a detailed list row using shared layout animation.

Gallery 62 is a pro gallery block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 111 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.

  • view-toggle
  • grid
  • list
  • layout-animation

Installation

  1. Add the Chocolate UI registry to your components.json (see the installation guide).
  2. Run the shadcn CLI:
npx shadcn@latest add @chocolate/gallery-62

Dependencies installed automatically: lucide-react, motion.

Uses: motion-presets, reveal, utils.

Usage

import Gallery62 from "@/components/blocks/gallery-62"

export default function Page() {
  return <Gallery62 />
}

FAQ