New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-image-height-width-resizer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-height-width-resizer

[Demo react-image-height-width-resizer](https://stackblitz.com/edit/stackblitz-starters-hpsetq?file=src%2FApp.tsx)

latest
Source
npmnpm
Version
1.0.13
Version published
Maintainers
1
Created
Source

DEMO

Demo react-image-height-width-resizer

Install Package

npm i react-image-height-width-resizer

Features

You can resize image height width inline using mouse drag.

Example

react-richtextbox

import  *  as  React  from  'react';
import  './style.css';
import  ImageResizer  from  'react-image-height-width-resizer';

  

export  default  function  App() {
	return (
			<>
				<ImageResizer 
					src={"https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg?w=2000"}
					height={200} //optinal default 100
					width={400} //optinal default 100
					className={'image'} // optinal
					onClick={(e) => {
					console.log('Image click')
				}}
				/>
			</>		
	
		);

}

Keywords

react

FAQs

Package last updated on 25 Jul 2023

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