Nominal Pizza Masticator

    @flexem/rc-resize-observer

    1.0.0 • Public • Published

    rc-resize-observer

    NPM version 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

    Property Type Default Description
    disabled boolean false
    onResize ({ width, height }) => void - Trigger when child node resized

    Development

    npm install
    npm start
    

    License

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

    Install

    npm i @flexem/rc-resize-observer

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    24.3 kB

    Total Files

    10

    Last publish

    Collaborators

    • flexemdev
    • yoli799480165
    • songkaige
    • wwbgo
    • alecliu