@fenderdigital/react-image

1.0.2 • Public • Published

Image for Fender React UI Kit

Description

Progressive image loader

Installation and Usage

yarn add @fenderdigital/react-image --save
import Image from '@fenderdigital/react-image';

Props

  • alt - Descriptive string of the image contents for accessibility
  • bgColor - Tachyon class (without bg- prefix) for image container background color
  • images - Array of image URLs
  • intersectionOptions - Object containing propters for the intersection observer
  • onLoaded - Callback to run after the higher fidelity image has loaded
  • ratio - Aspect ratio of the image
  • tiny - URL of a small version of the image
  • transition - CSS animation transition type
propName propType defaultValue isRequired
alt string '' false
bgColor string 'near-white' false
images array [] false
intersectionOptions object { root: null, rootMargin: '0px', threshold: 0.5 } false
onLoaded function () => {} false
ratio number 9 / 16 false
tiny string null false
transition string null false

Development

Check the Monorepo README for development documentation.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.20
1.0.10
1.0.00
0.1.0-beta.1120
0.1.0-beta.100
0.1.0-beta.90
0.1.0-beta.80
0.1.0-beta.70
0.1.0-beta.60
0.1.0-beta.50
0.1.0-beta.41
0.1.0-beta.30
0.1.0-beta.20
0.1.0-beta.10
0.1.0-beta.00

Package Sidebar

Install

npm i @fenderdigital/react-image

Weekly Downloads

21

Version

1.0.2

License

UNLICENSED

Unpacked Size

32.2 kB

Total Files

17

Last publish

Collaborators

  • stevenhuynh
  • markv242
  • coopercodecomposer
  • sherbert
  • jcuanan
  • derduher
  • philipyun
  • theloopla
  • jemnon