Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

dw-neit-rc-resize-observer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dw-neit-rc-resize-observer

Resize observer for React

npmnpm
Version
1.2.0
Version published
Weekly downloads
12
-45.45%
Maintainers
1
Weekly downloads
 
Created
Source

rc-resize-observer

NPM version dumi build status Codecov david deps david devDeps npm download

Resize observer for React.

Live Demo

https://react-component.github.io/resize-observer/

Install

rc-resize-observer

Usage

import ResizeObserver from 'rc-resize-observer';
import { render } from 'react-dom';

render(
  <ResizeObserver
    onResize={() => {
      console.log('resized!');
    }}
  >
    <textarea />
  </ResizeObserver>,
  mountNode,
);

API

PropertyTypeDefaultDescription
disabledbooleanfalse
onResize({ width, height }) => void-Trigger when child node resized

Development

npm install
npm start

License

rc-resize-observer is released under the MIT license.

Keywords

react

FAQs

Package last updated on 30 Sep 2022

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