Skip to main content

Image

A component for rendering images.

note

To use this component, you need to first register the image with matching imageId using LiveCompositor.registerImage request.

ImageProps

type ImageProps = {
id?: string;
imageId: string;
}

Properties

  • id - Id of a component. Defaults to value produced by useId hook.
  • imageId - Id of an image. It identifies an image registered using a LiveCompositor.registerImage method.