← @mortar-kit/core

Imageinterface

import { Image } from '@mortar-kit/core'

interface Image

An image: an uploaded asset (asset holds its key) or a URL, plus alt text and a title.

Properties

src: string

The URL to load. For an uploaded asset it is filled in when content is read (from the blob store), so render src and never build URLs from asset.

alt: string
title: string

A title, e.g. for a caption or tooltip; '' if none. Picking an asset fills in its default.

asset: string

The uploaded asset's key, or '' for a plain URL.