Gallery 98 - Viewer with keyboard shortcuts legendPro

A focusable photo viewer driven entirely by keyboard shortcuts (arrows, F to favorite, I for info, G for grid) with a legend panel that highlights each key as it is pressed.

About Gallery 98

A focusable photo viewer driven entirely by keyboard shortcuts (arrows, F to favorite, I for info, G for grid) with a legend panel that highlights each key as it is pressed.

Gallery 98 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 120 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.

  • keyboard
  • shortcuts
  • viewer
  • legend
  • accessibility

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-98

Dependencies installed automatically: lucide-react, motion.

Uses: kbd, reveal, utils.

Usage

import Gallery98 from "@/components/blocks/gallery-98"

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

FAQ