# @chakra-xui/image

> React component for progressive image loading

Latest version **1.0.2** (published 2020-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chakra-xui/image
pnpm add @chakra-xui/image
yarn add @chakra-xui/image
bun add @chakra-xui/image
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-12-24 |
| First published | 2020-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 47.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Segun Adebayo |
| Maintainers | meabed |
| Keywords | react, progressive, lazyloading, component, chakra xui, image, loading |

## Links

- npm: https://www.npmjs.com/package/@chakra-xui/image
- Repository: https://github.com/chakra-xui/chakra-xui
- Homepage: https://github.com/chakra-xui/chakra-xui#readme
- Issues: https://github.com/chakra-xui/chakra-xui/issues
- npm.io page: https://npm.io/package/@chakra-xui/image

## Dependencies (2)

- [@chakra-xui/hooks](https://npm.io/package/@chakra-xui/hooks.md) 1.0.2
- [@chakra-xui/utils](https://npm.io/package/@chakra-xui/utils.md) 1.0.2

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-12-24

## README

# @chakra-xui/image

The Image component is used to display images.

## Installation

```sh
yarn add @chakra-xui/image
```

## Import component

```jsx
import { Image } from "@chakra-xui/image"
```

## Basic Usage

```jsx
import React from 'react'
import { Image } from '@chakra-xui/image'
​
const Example = () => (
  <Image src="photo.png"  fallbackSrc="placeholdit.com/200x200" alt="A Placeholder Image" />
)
```

## Fallback support

You can provide a fallback image for when there is an error loading the `src` of
the image. You can also opt out of this behavior by passing the `ignoreFallback`
prop.

```jsx
<Image
  src="photo.png"
  fallbackSrc="placeholdit.com/200x200"
  alt="A Placeholder Image"
/>
```

---
_Source: https://npm.io/package/@chakra-xui/image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
