Aurora AI Image
aurora-dinglebear-ai/aurora-ai-imageUnverifiedBlock
Aurora-native image parity surface from AI Elements.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/dinglebear-ai/aurora/main/aurora-ai-image.jsonSource
1"use client"23import * as React from "react"4import { CircleAlert, Maximize2, RotateCw, Sparkles } from "lucide-react"5import { Button } from "@/registry/aurora/ui/button"6import { Spinner } from "@/registry/aurora/ui/spinner"78// AiImage — an AI-generated image surface with ready / generating / failed9// states, an "AI" identity badge, model pill, prompt overlay, metadata footer10// (caption / dimensions / seed) and expand + regenerate / retry affordances.11//12// Visual spec ported from the Claude Design source. Axon orange is the13// AI/automation identity accent; cyan remains the primary UI accent; status14// colors come from the semantic token layer.1516// ---------------------------------------------------------------------------17// Types18// ---------------------------------------------------------------------------1920export type AiImageStatus = "ready" | "generating" | "failed"2122/** Common aspect ratios — also accepts any "W:H" string. */23export type AiImageAspect = "1:1" | "4:3" | "3:2" | "16:9" | "3:4" | (string & {})2425export interface AuroraImageProps26 extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {27 /** Image source. When omitted (or `loading`/`status` is non-ready) the surface shows a state placeholder. */28 src?: string29 /** Alt text for the rendered image. */30 alt?: string31 /** State of the surface. Defaults to "ready"; `loading` forces "generating". */32 status?: AiImageStatus33 /** Convenience flag — same as `status="generating"`. */34 loading?: boolean35 /** Aspect ratio of the image frame (e.g. "4:3"). Defaults to "4:3". */36 aspect?: AiImageAspect37 /** Generation progress 0–1 — drives the bottom progress bar + percent label while generating. */38 progress?: number39 /** Model label shown in the top-right pill (e.g. "Imagen 3"). */40 model?: string41 /** Prompt text overlaid along the bottom of a ready image. */42 prompt?: string43 /** Caption shown in the footer below the frame. */44 caption?: string45 /** Pixel dimensions shown in the metadata row (e.g. "1024×768"). */46 dimensions?: string47 /** Seed shown in the metadata row. */48 seed?: string49 /** Regenerate handler — shows a "Regenerate" button in the ready footer. */50 onRegenerate?: () => void51 /** Expand handler — shows a hover "expand" affordance on a ready image. */52 onExpand?: () => void53 /** Retry handler — shows a "Retry" button in the failed state. */54 onRetry?: () => void55}5657// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from aurora
All 176 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora AI Actionaurora-ai-action | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Actionsaurora-ai-actions | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Agentaurora-ai-agent | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Image Gridaurora-ai-ai-image-grid | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Attachmentsaurora-ai-attachments | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Audio Playeraurora-ai-audio-player | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Branchaurora-ai-branch | aurora | Blocks | Unverified | 1 dep | |
| Aurora AI Canvasaurora-ai-canvas | aurora | Blocks | Unverified | 1 dep |
