New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

super-image

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-image

React image component with LazyLoad and object-fit

  • 0.1.0
  • Source
  • npm
  • Socket score

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

super-image

Build Status

React image component with LazyLoad and object-fit

Usage

Example

You'll have to include the CSS file in your project.

<link rel="stylesheet" type="text/css" href="/dist/super-image.css"/>
// Use LazyLoad and object-fit
<SuperImage
  lazyload
  src="image.png"
  width="160"
  height="90"
  alt="super-image"
  fit="contain"
/>

// Not supported object fit
<SuperImage
  fitFallback
  lazyload
  src="image.png"
  width="160"
  height="90"
  alt="super-image"
  fit="contain"
/>

Properties

PropertyTypeDescriptionDefault valueRequired
srcStringImage url-Yes
widthStringImage width-No
heightStringImage height-No
altStringAlternate text for image""No
classNameStringCustom className""No
altImageStringAlternate image srcGIF with transparent backgroundNo
flexibleBooleanIf this is true, A Component size is not fixed.falseNo
fitStringValue of the object-fit property. "contain", or "cover"-No
fitFallbackBooleanForce the component to use background-imagefalseNo
lazyloadBooleanUse lazyloadfalseNo
rootMarginDOMStringviewport-observer property.
See viewport-observer to get more details.
"0px"No

Dependencies

LICENSE

See LICENSE.

© FRESH!

Keywords

FAQs

Package last updated on 05 Aug 2017

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