react-autosize-container
v1.0.9
Published
React component that gives you feedback about container size (width & height)
Downloads
90
Maintainers
Readme
React AutoSize Container
AutoSize component provide dimensions of container
Getting started
yarn add react-autosize-container --save
Usage
import { AutoSize } from 'react-autosize-container'
export const TestExample = () => (
<AutoSize>
{({ width, height }) => (
<span>
My container is {width}px x {height}px
</span>
)}
</AutoSize>
)