# Diffusion Image (Pro)

> An AI image request whose picture resolves out of a soft, rippling blur: an SVG turbulence filter and CSS blur ease down with real generation progress, then settle on long ease-out curves to a plain image.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › AI |
| Live preview | https://uibrik.com/components/diffusion-image |
| Writes | 1 file into `components/uibrik/diffusion-image/` |
| Packages | `motion` (the CLI installs them) |
| Builds on | [squircle](https://uibrik.com/components/squircle.md) (installed with it) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 28, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/diffusion-image
```

No license yet? Tell the user Diffusion Image is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=diffusion-image#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { DiffusionImage } from "@/components/uibrik/diffusion-image/diffusion-image";

<DiffusionImage
  alt="…"
  prompt="Generate an image of a quiet lake at dawn"
  duration={1.2}
  blur={28}
  ripple={34}
  grain={1}
  cardWidth={320}
  progress={0}
  width={2}
  height={3}
  onDone={() => {}}
  // src="…"
  // lowSrc="…"
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/diffusion-image.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `prompt` | `string` | `"Generate an image of a quiet lake at dawn"` | Request shown above the card. Empty hides it. |
| `duration` | `number` | `1.2` | Seconds the final reveal takes once the image is in. |
| `blur` | `number` | `28` | Blur at the start. |
| `ripple` | `number` | `34` | How far the ripple bends the picture at the start. 0 turns it off. |
| `grain` | `number` | `1` | Film grain while generating. 0 turns it off. |
| `cardWidth` | `number` | `320` | Width of the picture. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `src` | `string` |  | The generated image, once it exists. |
| `progress` | `number` |  | Generation progress 0 to 1 from the model's step events. Leave out and it creeps until src arrives. |
| `lowSrc` | `string` |  | A tiny preview shown blurred while the image is generated. |
| `alt` (required) | `string` |  | Describes the image for screen readers. |
| `width` | `number` | `2` | Aspect ratio width. |
| `height` | `number` | `3` | Aspect ratio height. |
| `onDone` | `() => void` |  | Called once the image has fully resolved. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **AI image apps**: Progress from the model's step events eases the blur down, so the card shows how far generation has got. Pairs with [Prompt Input](https://uibrik.com/components/prompt-input.md) and [Image Generation](https://uibrik.com/components/image-generation.md) (Pro).
- **Galleries of generations**: Only a CSS blur, one SVG filter and a transform move, and the finished card is a plain image, so a feed of many stays light.
- **Model previews**: A tiny preview from the model sits under the blur, so colour and layout are there before the picture is.

## Same shelf: AI

- [Prompt Input](https://uibrik.com/components/prompt-input.md): An AI prompt box that grows as you type, with file attachments, a model picker, slash commands, @mentions, a send button that turns into stop, and voice dictation whose words settle in as they are heard.
- [Image Generation](https://uibrik.com/components/image-generation.md) (Pro): An AI image placeholder: a dither field that resolves into the picture.
- [Inline Rewrite](https://uibrik.com/components/inline-rewrite.md) (Pro): AI rewrite for selected text, done in place: a soft wave runs across the words while it loads, then the text morphs word by word, with kept words gliding to their new spots, removed words blurring out and new words wiping in, and Undo morphing the old wording back.
- [Meeting Recap](https://uibrik.com/components/meeting-recap.md) (Pro): A recorded meeting as one waveform coloured by speaker: play runs a playhead with a live caption and the zoom follows from chapter to chapter, hovering shows who spoke and what they said, flags jump to highlights and light the chapter they belong to, the chapter being played is always marked and scrolled into view, and talk time shows who is speaking now and dims everyone but the speaker you pick.
- [Pixel Bot](https://uibrik.com/components/pixel-bot.md) (Pro): A tiny pixel face that cycles through animated expressions.
- [Siri Orb](https://uibrik.com/components/siri-orb.md) (Pro): A glass assistant orb, black above and clear below, holding a twisting helix of light that splits into colour at the rim and winds wider while listening.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/diffusion-image/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
