---
title: "Shred Dissolve"
description: "Run a picture through a paper shredder. It splits into upright strips, and each strip falls after the one beside it."
url: https://gelatinui.com/components/shred-dissolve
markdown_url: https://gelatinui.com/components/shred-dissolve.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/shred-dissolve"
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Shred Dissolve

> Run a picture through a paper shredder. It splits into upright strips, and each strip falls after the one beside it.

Page: https://gelatinui.com/components/shred-dissolve

## When to use it

Best for: Rejected drafts and documents, where the removal should feel like office paper work.

- Use it for documents, proofs, and other paper-like content.
- Lower `strips` for wide ribbons, or raise it for a fine cut.
- Remove the row from your data in `onDissolveEnd`.

## When not to use it

- For columns that tip over, use [Topple Dissolve](https://gelatinui.com/components/topple-dissolve.md).
- For slats that close in place, use [Blinds Dissolve](https://gelatinui.com/components/blinds-dissolve.md).

## Notes for agents

- Strips leave from the reading start, so a right-to-left page runs the other way.
- `origin="end"` starts from the other side.
- The strips fall below the box. Leave free space under it, or a parent with `overflow-hidden` cuts them.
- `strips` is a whole number, 14 by default.

## Anatomy

```text
ShredDissolve
```

## API reference

### ShredDissolve

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `src` | `string` |  | The picture URL. Give `src` or `source`. |
| `source` | `union` |  | A picture the page already has: an `<img>`, a `<canvas>`, an `ImageBitmap`, or an `OffscreenCanvas`. |
| `alt` | `string` |  | Names the picture for screen readers while it shows. |
| `crossOrigin` | `GrainCrossOrigin` |  | The CORS mode of a picture on another origin: the grains read its pixels. |
| `fit` | `GrainFit` |  | How the picture fills the box, as `object-fit`. Default `cover`. |
| `grainSize` | `number` |  | The side of one grain in CSS px. A very large box raises it, so the effect stays smooth. |
| `dissolved` | `boolean` |  | The picture is gone (controlled). `true` takes it apart; `false` brings it back. |
| `restore` | `"instant" \| "play"` |  | How the picture comes back: `play` runs the effect backward, `instant` shows it at once. Default `play`. |
| `progress` | `number` |  | From 0 (whole) to 1 (gone): a gesture drives the effect and no clock runs. Leave it out to play. |
| `seed` | `number` |  | The same seed gives the same motion. Default: from the picture URL. |
| `onDissolveEnd` | `function` |  | Called when the last grain has left (or the fade has ended). |
| `onRestoreEnd` | `function` |  | Called when the picture is whole again after a played return. |
| `origin` | `GrainOrigin` |  | Where the effect starts. `press` is the last press in the picture. |
| `spread` | `number` |  | From 0 to 0.85: how much of the effect passes between the first grain that leaves and the last. |
| `jitter` | `number` |  | From 0 to 0.85: how much of each grain's start is random. |
| `duration` | `number` |  | How long the strips take to fall, in ms. Default `1800`. |
| `gravity` | `number` |  | How fast the strips fall. Default `1`. |
| `strips` | `number` |  | How many strips the picture is cut into. Default `14`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| ShredDissolve | `shred-dissolve` |  |  |  |

## Usage

Shred the proof, then remove it from the list when the last strip is gone.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/shred-dissolve @gelatin-ui/button
```

```tsx title="rejected-proof.tsx"
"use client";

import { useState } from "react";

import { ShredDissolve } from "@/components/pro/effects/shred-dissolve";
import { Button } from "@/components/ui/button";

export function RejectedProof({ onDiscard }: { onDiscard: () => void }) {
  const [shredding, setShredding] = useState(false);
  return (
    <article className="flex w-80 max-w-full flex-col gap-3 pb-48">
      <ShredDissolve
        src="/photos/perfume-proof.webp"
        alt="A glass perfume bottle on stone"
        dissolved={shredding}
        strips={20}
        className="w-full"
        onDissolveEnd={onDiscard}
      />
      <div className="flex items-center justify-between gap-4 text-sm">
        Product shot, draft 2
        <Button
          size="sm"
          variant="destructive"
          disabled={shredding}
          onClick={() => {
            setShredding(true);
          }}
        >
          Shred
        </Button>
      </div>
    </article>
  );
}
```

## 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/shred-dissolve
```

It adds 35 registry items: 34 files, 6531 lines, and the npm packages `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `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

- [Topple Dissolve](https://gelatinui.com/components/topple-dissolve.md)
- [Blinds Dissolve](https://gelatinui.com/components/blinds-dissolve.md)
- [Receipt Printer](https://gelatinui.com/components/receipt-printer.md)
- [Crumple to Delete](https://gelatinui.com/components/crumple-to-delete.md)

## Motion

| Part | Motion |
| --- | --- |
| Shred | reactionFloat · 1.8s · strips fall one after another, each with its own small tilt |
| Back | reactionFloat · 1.8s · the strips rise and join in reverse order |
