Skip to Content

Gallery Wall Panels

Art gallery backdrop that hangs your paintings side by side as unframed panels, with one Fish School swimming across them, masked to the panels. Takes an array of paintings and an optional school, for portfolio and exhibition pages.

Installation

pnpm dlx shadcn@latest add @01orbital/gallery-wall-panels

Usage

import { ColorField } from "@/components/scene/color-field"
import { GalleryWallPanels } from "@/components/scene/gallery-wall-panels"

export default function GalleryWallPanelsDemo() {
  return (
    <div className="relative isolate grid min-h-full w-full flex-1 place-items-center overflow-hidden bg-background text-foreground">
      <div className="relative aspect-3/1 w-full">
        <GalleryWallPanels
          paintings={[
            <ColorField key="field" className="absolute inset-0" />,
            <img
              key="plume"
              src="https://01orbital.dev/art/kit/bone-plume.png"
              alt=""
              className="absolute inset-0 size-full object-cover"
            />,
          ]}
        />
      </div>
    </div>
  )
}

This example installs with everything it uses:

pnpm dlx shadcn@latest add @01orbital/gallery-wall-panels-demo

API reference

Composed backdrop — paintings hung side by side on the page ground, no frames, and one school swimming out of each painting into the next. Each painting fills its own panel, in order, left to right.

Prop

Type

It also accepts the HTML attributes of the element it renders.

Dependencies

npm: cn. The CLI installs it for you.

Requires these pieces. The CLI adds each one that is missing and won't replace a file you already have unless you choose to:

Used in blocks

3 blocks are built with Gallery Wall Panels:

Last updated on