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 byuseId
hook.imageId
- Id of an image. It identifies an image registered using aLiveCompositor.registerImage
method.