---
title: "Origami Gallery"
description: "A row of pictures folded like paper that opens one card at a time. Use it for craft, print, and editorial work."
url: https://gelatinui.com/components/origami-gallery
markdown_url: https://gelatinui.com/components/origami-gallery.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/origami-gallery"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Origami Gallery

> A row of pictures folded like paper that opens one card at a time. Use it for craft, print, and editorial work.

Page: https://gelatinui.com/components/origami-gallery

## When to use it

Best for: Craft or editorial work: side cards fold into paper pleats and open flat at the front.

- Use `cardScale` and `gap` for the card size and the space between cards.

## When not to use it

- For cards under thick glass, use [Glass Slide Gallery](https://gelatinui.com/components/glass-slide-gallery.md).
- For a strip that winds onto spools, use [Film Reel Gallery](https://gelatinui.com/components/film-reel-gallery.md).

## Notes for agents

- It has no `finish` prop: the fold is the look.
- Each item needs `id`, `src`, `alt`, `title`, `meta`, and `text`. The caption shows `title` and `meta` of the front card.
- The root is a flex column, and the stage fills the rest of it: give the root a height, or give the stage one.
- With no WebGL, or with `renderer="css"`, the cards draw flat in CSS 3D. A cross-origin picture needs CORS headers.
- The pictures load when the gallery comes near the view, and it stops off screen.
- `drift` moves the cards at rest. `drive` takes a Motion value in cards (scroll or time); then the hand no longer moves it, and a drag stays with the page.
- `budget` (default 60) is the number of cards; it rounds up to whole copies of `items`.

## Anatomy

```text
OrigamiGallery
```

## API reference

### OrigamiGallery

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `readonly Readonly` |  |  |
| `drive` | `MotionValue<number>` |  | Moves the look from a value, in cards: 1.5 is halfway from card 1 to card 2. Use it for scroll or time. The hand no longer moves the look, and a drag stays with the page. |
| `finishes` | `readonly Readonly` |  | The finishes `finish` may switch between. The shaders hold all of them, so a switch fades and never builds the program again. A look item that offers a choice passes its choices. |
| `budget` | `number` |  | The number of cards in the look. It rounds up to whole copies of the items. |
| `cardAspect` | `number` |  | Card width / card height. Default: the one the look was made for. |
| `drift` | `number` |  | Cards per second while nobody touches the gallery. |
| `renderer` | `"auto" \| "css"` |  | `css` forces flat cards, as a page with no WebGL gets. |
| `cardScale` | `number` | 0.98 | The size of the folded cards. |
| `gap` | `number` | 0.04 | The space between the cards. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| OrigamiGallery | `origami-gallery` |  |  |  |

## Usage

Pass the cards as `items`, then place the stage and the caption parts. Give the root a height.

```tsx title="origami-prints.tsx"
import { OrigamiGallery, OrigamiGalleryCaption, OrigamiGalleryMeta, OrigamiGalleryNext, OrigamiGalleryPrevious, OrigamiGalleryStage, OrigamiGalleryTitle } from "@/components/pro/effects/origami-gallery";

const PRINTS = [
  { id: "neon-rain", title: "Neon Rain", meta: "Print 02 · 40 × 50 cm", text: "A city at night in eleven inks.",
    src: "/example-assets/night-city-4x5.webp", alt: "A city street at night with neon signs" },
  { id: "spring-water", title: "Spring Water", meta: "Print 03 · 30 × 40 cm", text: "A quiet pond in pale pink and blue.",
    src: "/example-assets/cherry-blossom-pond-4x5.webp", alt: "Cherry blossoms over a still pond" },
  { id: "long-road", title: "Long Road", meta: "Print 04 · 50 × 70 cm", text: "Warm desert light in a wide format.",
    src: "/example-assets/desert-road-4x5.webp", alt: "A straight desert road to the horizon" },
  { id: "smoke-and-pine", title: "Smoke and Pine", meta: "Print 05 · 30 × 40 cm", text: "A small cabin under tall trees.",
    src: "/example-assets/forest-cabin-4x5.webp", alt: "A small cabin under tall pines" },
];

export function PrintsGallery() {
  return (
    <OrigamiGallery items={PRINTS} className="h-[560px]">
      <OrigamiGalleryStage />
      <OrigamiGalleryCaption className="px-4 pb-4">
        <div className="min-w-0">
          <OrigamiGalleryTitle />
          <OrigamiGalleryMeta />
        </div>
        <div className="flex shrink-0 gap-2">
          <OrigamiGalleryPrevious />
          <OrigamiGalleryNext />
        </div>
      </OrigamiGalleryCaption>
    </OrigamiGallery>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/origami-gallery
```

It adds 46 registry items: 42 files, 8407 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@phosphor-icons/react`, `@unpic/core`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`, `xstate`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Glass Slide Gallery](https://gelatinui.com/components/glass-slide-gallery.md)
- [Film Reel Gallery](https://gelatinui.com/components/film-reel-gallery.md)
- [Jelly Gallery](https://gelatinui.com/components/jelly-gallery.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves focus to the stage. The focus ring shows on the front card. |
| ← → | Moves to the card before or after. The arrows swap in a right-to-left page. |
| Home, End | Moves to the first or the last card. |

## Motion

| Part | Motion |
| --- | --- |
| Move | glide · Previous, Next, and the arrow keys move one card in about 0.46s; a far card takes up to 0.86s |
| Throw | glide · a drag release lands where the cards would be 320ms later, on the nearest card |
| Rest | progress · with `drift`, the cards move on their own, in cards a second; after a touch the drift waits 5s and eases back in |
