1.0.7 • Published 5 years ago

react-img-rz v1.0.7

Weekly downloads
8
License
-
Repository
-
Last release
5 years ago
# use npm
$ npm install --save react-img-rz

# use yarn
$ yarn add --save react-img-rz

Programacion(Uso)

import React from 'react';
import Image from 'react-img-rz';

export class ejemplo extends Component {
  render() {
   let value={img:'path/to/image.jpg',size:240};
    return (
      <>
        <Image
			src={value.img}
			width={value.size}
			height={value.size}
			style={{position: 'initial',display: 'unset',}}
            />
      </>
    );
  }
}

Opciones

namerequiredtypedefaultdescription
srctrueString''Path de tu imagen
altfalseString''Descripcion de la Imagen
heighttrueNumber0Height despues de cambiar su tamaño (solo px)
widthtrueNumber0Width despues de cambiar su tamaño (solo px)
stylefalseobjectEstilo de la imagen (style css)

License

This project is licensed under the terms of the MIT license.