0.0.2 • Published 2 years ago

simple-resizer v0.0.2

Weekly downloads
1
License
-
Repository
github
Last release
2 years ago

React resize component

This project was created as an Interview for unnamed company. It's a simple React component that allows to the user increase or decrease the width or height of a container wrapping any child component passed to the Resizer component.

Sample usage

<Resizable initialSize={{x: 250, y: 250}}>
    <div>Random lorem ipsum text.</div>
</Resizable>

Options

You can pass other options along with height and width:

  • initialSize: initial width and height of the resizeable container.
  • className: class name for custom css.
  • icon: user can pass icon or text for handles.