image

Image

Shows an image with a loading effect and a placeholder while it loads, and a fallback when it fails, such as a product shot.

States: Default

Parts

PartFileDoes
ImageImage.vueShows an image with a loading state and a fallback if it fails to load.
ImageFallbackImageFallback.vueShows a placeholder in place of an image that failed to load.

Anatomy

<Image>
  <ImageFallback />
</Image>

Styling

PartRecipe
Imageimage
Imageimage-loading
ImageFallbackimage-fallback

Install

Writes 3 files into components/ui/image/. For agents, npx @frontic/ui docs image prints this reference as markdown; the MCP server serves the same.

npm packages
@lucide/vue
class-variance-authority

API reference

Image Image.vue

Shows an image with a loading state and a fallback if it fails to load. Renders a <span>.

PropTypeDefault
classClassValue—
srcstring—
altstring—
loadingEffectLoadingEffect'skeleton'
fallbackSrcstring—
placeholderSrcstring—
prioritybooleanfalse
SlotSlot props
fallback—
Recipe imageSets
base: image 2 properties
Recipe image-loadingSets
effect: skeletondefault 1 property
effect: blur 1 property

ImageFallback ImageFallback.vue

Example