1.4.3 • Published 6 months ago

rc-resize-observer v1.4.3

Weekly downloads
567,885
License
MIT
Repository
github
Last release
6 months ago

rc-resize-observer

NPM version dumi build status Codecov 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.

1.4.3

6 months ago

1.4.2

6 months ago

1.4.1

6 months ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.1

4 years ago

1.1.2

3 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.3.0

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago