← @mortar-kit/core

FileValueinterface

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

interface FileValue

A file (video, audio, PDF…): an uploaded asset or a URL.

Properties

src: string

The URL to load; for an uploaded asset, filled in when content is read.

title: string

A title, e.g. a download link's text; '' if none. Picking an asset fills in its default.

asset: string

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