0.2.2 • Published 8 years ago

react-size-sensor v0.2.2

Weekly downloads
22
License
-
Repository
github
Last release
8 years ago

React <SizeSensor />

React component that fires resize events if size of its children changes.

import {SizeSensor} from 'resize-sensor';

<SizeSensor onSize={(width, height) => {}} onResize={(width, height) => {}}>
    {/* something to track size of */}
</SizeSensor>
  • onSize - Fires with the initial size of the component when component renders for the first time.
  • onResize - Fires every time component's width or height changes.
  • onWidth - Fires every time component's width changes.
  • onHeight - Fires every time component's height changes.
0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago