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
Name | Type | Default | Description |
---|---|---|---|
src | string | '' | The path to the image you want to embed. |
provider | StashImageProviders | undefined | Where 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 |
radius | ImageRadii | none | For applying border radius |
sizes | string | undefined | For specifying responsive sizes |
srcset | string | undefined | Native 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 |
staticPath | string | undefined | A 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