Skip to content

Image API

API reference docs for the Stash Image component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import Image from '@leaflink/stash/Image.vue';

Props

NameTypeDefaultDescription
srcstring '' The path to the image you want to embed.
providerStashImageProvidersundefinedWhere the image is served from. If not provided, the provider will inherit from the Stash config `stashOptions.images.provider` (default: `static`). - `static` for relative or absolute paths - `cloudinary` for images served via Cloudinary
radiusImageRadiinoneFor applying border radius
sizesstringundefinedFor specifying responsive sizes
srcsetstringundefinedNative srcset attribute. One or more strings separated by commas, indicating possible image sources Can only be used with provider=static, otherwise it's ignored and auto-generated with `sizes` usage
staticPathstringundefinedA custom static path the image src will be appended onto when provider=static. Can be used to override the library-level default.

Slots

None

Events

None