1.0.17 ⢠Published 4 years ago
@rafcin/image v1.0.17
@rafcin/image
The Image component is used to display images.
Installation
yarn add @rafcin/imageImport component
import { Image } from "@rafcin/image"Basic Usage
import React from 'react'
import { Image } from '@rafcin/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.
<Image
src="photo.png"
fallbackSrc="placeholdit.com/200x200"
alt="A Placeholder Image"
/>1.0.17
4 years ago