Socket
Socket
Sign inDemoInstall

simple-resizer

Package Overview
Dependencies
11
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-resizer

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.


Version published
Weekly downloads
6
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 28 Aug 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc