Skip to content

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

License

Notifications You must be signed in to change notification settings

JonathanReisCom/react-dummy-image

Repository files navigation

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!


About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages