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

@crystallize/react-image

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crystallize/react-image

A React package to output an img tag with different source variations from Crystallize

  • 1.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-70.65%
Maintainers
1
Weekly downloads
 
Created
Source

Crystallize image

A React package to output an img tag with different source variations from Crystallize

How to use

import CrystallizeImage from '@crystallize/react-image';
<CrystallizeImage
    media={image}
    alt={image.alt}
/>

Options

media[mediaObject]: required*

src[string]: required*

srcVariations[array[string]]: required*

alt: required

* Either media, src, srcVariations must be provided

mediaObject

Example:

{
    url: '/myimage.jpg',
    product_image_variations: ['/myimage_300.jpg', '/myimage_1024.jpg']
}

FAQs

Package last updated on 21 Jun 2018

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