# Bento Gallery

> A draggable bento grid gallery for product shots and dashboard screenshots that opens into a shared lightbox.

A React component for shadcn/ui and Tailwind CSS, from ssych ui (https://ssych.com). Free, MIT licensed, the source lands in your repo.

## Install

```bash
npx shadcn@latest add @ssych/bento-gallery
```

npm dependencies: clsx, lucide-react, motion, tailwind-merge

## Props

`<GalleryModal />`

- `selectedItem`: `MediaItemType`
- `isOpen`: `boolean`
- `onClose`: `() => void; setSelectedItem: (item: MediaItemType | null) => void; mediaItems: MediaItemTy`

## Where it belongs

- Cards: React card components: a draggable card stack, responsive card grids, list views, a bento gallery and news cards. (https://ssych.com/library/s/cards)

## Related

- Card Stack: https://ssych.com/library/card-stack.md
- Card Grid: https://ssych.com/library/card-grid.md
- Card List: https://ssych.com/library/card-list.md
- News Card: https://ssych.com/library/news-card.md
- Project Index: https://ssych.com/library/project-index.md
- Index Card: https://ssych.com/library/index-card.md

## Links

- Live preview and code: https://ssych.com/library/bento-gallery
- Source: https://github.com/savvasicevs/ssych-ui
- All components: https://ssych.com/llms-full.txt
