• An image by URL. The URL is the url of an image asset of the project, uploaded with assets.uploadImage; the server refuses any other image URL. The second argument is alternative text, or an options bag carrying that text beside the image's layout and width.

    Parameters

    • url: string
    • Optionalalt: string

    Returns ImageBlock

    const oooAsset = await lk.assets.uploadImage({ data: oooPng, contentType: 'image/png', name: 'Map of Ooo' })
    const map = image(oooAsset.url!, 'Map of Ooo')
    const portrait = image(jakeAsset.url!, { alt: 'Jake the Dog', layout: 'wrapRight', width: 40 })
  • Parameters

    Returns ImageBlock