Skip to content

swiftcarrot/react-resize-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-resize-box

import ResizeBox from 'react-resize-box';

<ResizeBox
  style={{ width: 400, height: 400 }}
  box={{ top: 10, left: 20, width: 200, height: 200 }}
>
  <img
    src="https://swiftcarrot.com/static/[email protected]"
    style={{
      width: '100%',
      height: '100%',
      objectFit: 'cover',
      userSelect: 'none',
      webkitUserDrag: 'none'
    }}
  />
</ResizeBox>;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published