🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

react-dummy-image

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dummy-image

A React library for creating test images to use as a development model

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
9
50%
Maintainers
1
Weekly downloads
 
Created
Source

React Dummy Image

A React library for creating test images to use as a development model

Repository size GitHub issues badge GitHub license badge

Overview   |    Technologies   |    Install   |    How To Use   |    License

Overview Overview

Based on Russell Heimlich's concept at http://dummyimage.com this is a port for React to allow you generate dummy images of any specified dimension. A simple app to generate dummy/filler images on the fly at whatever size you want.

Technologies Technologies

This project was developed with the following technologies:

Install Install

npm install --save react-dummy-image

or

yarn add react-dummy-image

How To Use How To Use

import React, { Component } from 'react';

import DummyImage from 'react-dummy-image';

const Example = () => {
  return (
    <div className={'mycontainer'}>
      <DummyImage text="Colors" color="#ff0000" textColor="#ffffff" />
      <br />
      <DummyImage text="Format.jpg" format={'jpg'} />
      <br />
      <DummyImage text="Class" className={'myimage'} />
    </div>
  );
};

export default Example;

License License

This project is under the MIT license. See the LICENSE for more information.

Made with by Jonathan Reis Get in touch!

FAQs

Package last updated on 16 May 2020

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