Installation
pnpm dlx shadcn@latest add https://loading.design/r/image-generation.jsonUsage
import { ImageGeneration } from "@/components/loading/image-generation"
<ImageGeneration size={14} speed={1.8} active={true} />API
| Prop | Type | Default | Description |
|---|---|---|---|
| size | number | 14 | Scale of the dot canvas in pixels. |
| speed | number | 1.8 | Duration of the dot shimmer in seconds. |
| active | boolean | true | Whether the dot animation is active. |
| label | string | Generating image… | Accessible status label. Pass an empty string for decorative use. |
Accessibility
The component exposes a polite status through its label. Use an empty label only when nearby text already communicates the loading state, or when the motion is purely decorative.