Skip to main content

Function: ImageComponent()

ImageComponent(props): Element

Defined in: packages/next/src/components/ImageComponent.tsx:106

An implementation of the ImageBlock (core/image).

If width, height or src are not provided, this component will not be used.

Usage

import { BlocksRenderer, ImageBlock } from "@headstartwp/core/react";
import { ImageComponent } from "@headstartwp/next";

<BlocksRenderer html={html}>
<ImageBlock component={ImageComponent} />
</BlocksRenderer>

Parameters

props

ImageProps

ImageBlockProps

Returns

Element