Indielayer UI - Vue.js 3 / Nuxt.js 3 UI Library with Tailwind CSS 4. ⚡️  Build and prototype fast web applications.

Indielayer
Indielayer UIIndielayer UI
UI
v2.1.0

Image

Loads a remote image after preloading. Use a background on the wrapper for a visible placeholder until load completes.

#
Usage

Basic image with alt text, dimensions, and object-cover.

Golden retriever sitting on a path

#
Sizing

Common width and height combinations.

Thumbnail
120 × 120
Card image
200 × 150
Wide banner
320 × 180

#
States

Loading placeholder and failed URL behavior.

Loading

A neutral background on the wrapper shows while the URL loads. The component swaps in src after onload.

Portrait loaded from remote URL

Failed load

When the request fails, the image keeps a minimal fallback and the wrapper background remains visible.

Image failed to load

#API

Image

props

Name
Description
Type
Default
Values
Required
src
Image URL. Shows a transparent placeholder until the image loads.
String