1.0.2 • Published 5 years ago
@fenderdigital/react-image v1.0.2
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 accessibilitybgColor
- Tachyon class (withoutbg-
prefix) for image container background colorimages
- Array of image URLsintersectionOptions
- Object containing propters for the intersection observeronLoaded
- Callback to run after the higher fidelity image has loadedratio
- Aspect ratio of the imagetiny
- URL of a small version of the imagetransition
- 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.
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.1.0-beta.11
5 years ago
0.1.0-beta.10
5 years ago
0.1.0-beta.9
5 years ago
0.1.0-beta.8
5 years ago
0.1.0-beta.7
5 years ago
0.1.0-beta.6
5 years ago
0.1.0-beta.5
5 years ago
0.1.0-beta.4
5 years ago
0.1.0-beta.3
5 years ago
0.1.0-beta.2
5 years ago
0.1.0-beta.1
5 years ago
0.1.0-beta.0
5 years ago