Imagecomponent

Image({ src, alt, ...variants }: ImageProps): ReactElement
ParamType
variantsImageProps
Props for Image — an src, optional alt text, plus space and width variants. required
    .srcstring
required
    .altstring
Return
ReactElement
Rendered <img> element.

Image block — renders an <img> with space and width variants applied.

Examples

<Image src="/logo.png" alt="Logo" width="narrow" />