Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@volvo-cars/image-component

Package Overview
Dependencies
Maintainers
14
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volvo-cars/image-component

Image component

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
14
Weekly downloads
 
Created
Source

Image

An image component with with optiional lazy-loading, spinner, placeholder with aspect ratio, and background option as well as retina support.

Basic usage

<Image src="https://example.com/example.jpg" />

Props

PropsTypeDescriptionRequiredDefault
srcstringImage source url✔︎null
retinaSrcstringRetina image source urlnull
aspectRatioarray [width, height]Aspect ratio for placeholder shown before image has loadednull
displayAsBackgroundbooleanDisplay image as backgroundfalse
loaderstringSet if a loading indicator should be shown during load (for now only "spinner" is available)null
placeholderBackgroundstringCustom background color of the placeholdernull
onLoadfuncCallback fired when image finish loadingnull
extendobjectExtend styles of imagenull
extendContainerobjectExtend styles of image container elementnull
disableFaderbooleanDisable fade-in transition when image is loadedfalse
disableLoadingbooleanDisable lazy-loading and load image as usualfalse
errorTextstringMessage shown when loading image results in an errornull
fallbackQueryParameterstringQuery parameter to append to image url and retry on errornull
altstringnull
lazyloadbooleanfalse

Keywords

FAQs

Package last updated on 16 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc