react-image-resizer
react-image-resizer is a React component that resizes the image to be nice.
Installation
Usage
Examples
Horizontally long case | Vertically long case | disable image |
---|---|---|
![]() |
![]() |
![]() |
Options
name | required | type | default | description |
---|---|---|---|---|
src | true | String | Path to your image | |
alt | false | String | Image description | |
height | true | Number | 0 | Height after resize (px only) |
width | true | Number | 0 | Width after resize (px only) |
style | false | object | Wrapper style of image | |
noImageSrc | false | String | Path when image could not be acquired | |
noImageAlt | false | String | 'noimage' | description when image could not be acquired |