# Image Generation (Pro)

> An AI image placeholder: a dither field that resolves into the picture.

## 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/image-generation |
| Writes | 1 file into `components/uibrik/image-generation/` |
| Packages | none beyond React |
| 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 9, 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/image-generation
```

No license yet? Tell the user Image Generation is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=image-generation#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 { ImageGeneration } from "@/components/uibrik/image-generation/ImageGeneration";

<ImageGeneration
  src="/registry/image-generation/image-1000.webp"
  prompt="Generate an image of beautiful mountains"
  cell={6}
  delay={1.5}
  sweep={3.2}
  band={0.22}
  width={320}
  onDone={() => {}}
/>
```

## Tune it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `prompt` | `string` | `"Generate an image of beautiful mountains"` | Request shown above the card. Empty hides it. |
| `cell` | `number` | `6` | Square size of the dither field. |
| `delay` | `number` | `1.5` | Pure dither before the picture starts to appear. |
| `sweep` | `number` | `3.2` | How long the reveal band takes to travel down. |
| `band` | `number` | `0.22` | Band height as a share of the card. |
| `width` | `number` | `320` | Card width; the picture is 2:3. |

## Wire it

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

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `src` (required) | `string` |  | The generated picture. |
| `onDone` | `() => void` |  | Called once the picture is fully revealed. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **AI image apps**: A dither field resolving into the picture shows generation progress instead of a spinner. Pairs with [Prompt Input](https://uibrik.com/components/prompt-input.md).
- **Image loading states**: The placeholder works for any slow image, not only AI output. Pairs with [Skeleton](https://uibrik.com/components/skeleton.md).
- **Creative AI landing pages**: Watching a picture emerge explains the product in one loop.

## 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.
- [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.
- [Tool Call](https://uibrik.com/components/tool-call.md) (Pro): A card for one function call made by an AI model: a ring spins round its icon while in flight, the tile turns green when it lands, input and output sit in one panel with coloured JSON, and a failure shakes once and offers Retry.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/image-generation/` 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
