Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vuetifyjs/vuetify/llms.txt
Use this file to discover all available pages before exploring further.
Image
The VImg component is a powerful image container that handles loading states, aspect ratios, lazy loading, and provides slots for customization.Usage
API
Props
The image source URL or source object with src, srcset, and lazySrc properties.
Alt text for the image (important for accessibility).
Resizes the image to cover the entire container (object-fit: cover).
Calculated as width/height. Forces the image to maintain a specific aspect ratio.
Low-resolution image to display while the main image loads.
Forces the image to load immediately instead of lazy loading.
CSS gradient overlay applied on top of the image.
CSS object-position value for the image.
The sizes attribute for responsive images.
The srcset attribute for responsive images.
The crossorigin attribute for CORS.
The referrerpolicy attribute for the image.
Controls whether the image is draggable.
Positions the image absolutely within its container.
Background color displayed while the image is loading.
Options passed to the Intersection Observer for lazy loading.
The transition to use when the image loads.
Events
Emitted when the image starts loading.
Emitted when the image has finished loading.
Emitted when the image fails to load.
Slots
default
Default content displayed over the image.
placeholder
Content displayed while the image is loading.
error
Content displayed when the image fails to load.
sources
Slot for adding source elements for the picture element.