AnalyzingImage is a scanning image placeholder for vision, OCR, upload review,
and image-understanding flows. It pairs especially well with shimmer text
components when the surrounding copy should feel like an active analysis state.
Installation
Usage
import { AnalyzingImage } from "@/components/loading-ui/analyzing-image";<AnalyzingImage className="size-16" />Customization
AnalyzingImage scales from size-* utilities and inherits currentColor. The
wipe mask defaults to var(--background); on filled surfaces, set
--loading-ui-analyzing-image-background to the surface color so the scan feels
native to the container.
Size
Use compact sizes for badges and buttons, and larger sizes for empty states or image-analysis panels.
Color
Color comes from currentColor, so text utilities or inherited foreground
colors are enough.
Examples
These examples use the component where an image is being read, described, or processed. Pairing it with shimmer text keeps the visual and copy in the same analysis language.
Shimmer Text
Use TextShimmer beside the icon when the label itself should feel active.
Analyzing image
Reading objects, text, and scene context.
Button
Buttons can use the icon for pending vision actions. Filled variants set the mask background to match the button surface.
Badge
Badges work well for compact OCR, vision, and analysis labels.
Empty
Empty states can combine the icon with shimmer text while an uploaded image is still being inspected.
Analyzing upload
Visual details are still being extracted from the image.