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>;
-
Notifications
You must be signed in to change notification settings - Fork 1
swiftcarrot/react-resize-box
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published