Documentation
Image

Image

Display image content.

Usage

First of all, you need to import the Image component from the kitchn package.

import { Image } from "kitchn"

Static

Lorem picsum image
Code Editor
<Image
    src={"https://picsum.photos/540/300"}
    alt={"Lorem picsum image"}
    width={540}
    height={"auto"}
    htmlWidth={540}
    htmlHeight={300}
/>

Props

NameTypeDefaultRequiredDescriptionAccepted values
srcstringundefinedThe URL or path of the image.-
altstringundefinedThe alternative text for the image.-
Last updated on