react-image-filler
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

React Image Filler

react-image-filler is a React component that return placeholder image with given width and height.

Installation

npm install react-image-filler --save

or

yarn add react-image-filler

Usage

import ImageFiller from 'react-image-filler';

const App = () => {
    return (
        <div>
            <ImageFiller width={200} height={200} />
        </div>
    );
}

Props

Prop Type Default Description
width number 100 Width of the image
height number 100 Height of the image
text string Placeholder text of the image
color string #6a6a6a text color of the image
background string #dddddd background color of the image

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

step to contribute:

  1. Fork the project & clone locally.
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request
  6. Enjoy 😃

Author

If you like this package, please leave a star.

Package Sidebar

Install

npm i react-image-filler

Weekly Downloads

34

Version

1.0.1

License

MIT

Unpacked Size

48.7 kB

Total Files

10

Last publish

Collaborators

  • remahmoud