Catalog npm
PACKAGE EXPLORERView in registry

2r-image

npm

2R library image component implemented in React

imagereactreact-imagereact-image-component
Versions collected4
Direct dependencies19From release 1.0.3
Last observed20 Oct, 19:18 UTC

README

Current package documentation

2r-image

2R library image component implemented in React.

Instalation

2r-image is available as an npm package. Simply run npm install 2r-image command.

To use it in your project:

import image from '2r-image'; // ES6 syntax
var image = require('2r-image'); // ES5 syntax

Usage & API

The following props can be passed to the component:

  • src (String, required): the url of the image

  • width (Number): width of the image (defaults to 'auto')

  • height (Number): height of the image (defaults to 'auto')

  • alt (String): the value of the alt attribute (defaults to '')

  • classes (String): a string of multiple classes, separated by space (defaults to '')

Examples

There is an examples folder inside the project with a minimum config. Steps to run:

  • Clone the project and

  • Run npm install

  • Run gulp examples

  • Navigate to http://localhost:5000

License

This software is released under the terms of WTFPL v2.0 license.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.3Registry latest1 Sept 201519
1.0.222 Aug 201519
1.0.122 Aug 201519
1.0.022 Aug 201519

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
vladzelinschi/2r-image

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:9821875356540384a805e0216511f3a7042fb32fe55225a1ee8853d1bdb0a978