Image generation
A card that shows an image as it is generated, from queued to complete.

A quiet harbour at dusk, flat shapes, muted teal and clay
Image ready
When to use
- An assistant produces images and the wait should feel alive.
- You need retry and download actions on the result.
When not to use
- The image already exists and only needs viewing; use the image viewer.
Installation
pnpm dlx shadcn@latest add @caliper/image-generation
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ImageGeneration
12 props
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes progressbar, alert and status semantics, with aria-busy, aria-hidden, aria-label, aria-valuemin, aria-valuemax and aria-valuenow kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/image-generation.mdThe index of every part is at /llms.txt.