0.1.0-alpha.2 ā€¢ Published 4 years ago

@bianic-ui/image v0.1.0-alpha.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
4 years ago

@bianic-ui/image

The Image component is used to display images.

Installation

yarn add @bianic-ui/image

Import component

import { Image } from "@bianic-ui/image"

Basic Usage

import React from 'react'
import { Image } from '@bianic-ui/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"
/>