React component for progressive image loading
npm install @chakra-ui/imageThe Image component is used to display images.
``sh`
yarn add @chakra-ui/image
`jsx`
import { Image } from "@chakra-ui/image"
`jsx
import React from "react"
import { Image } from "@chakra-ui/image"
const Example = () => (
fallbackSrc="placeholdit.com/200x200"
alt="A Placeholder Image"
/>
)
`
You can provide a fallback image for when there is an error loading the src ofignoreFallback
the image. You can also opt out of this behavior by passing the
prop.
`jsx``
fallbackSrc="placeholdit.com/200x200"
alt="A Placeholder Image"
/>