react-autosize-container
Version:
React component that gives you feedback about container size (width & height)
26 lines (19 loc) • 426 B
Markdown
# React AutoSize Container
AutoSize component provide dimensions of container
## Getting started
```
yarn add react-autosize-container --save
```
## Usage
```jsx
import { AutoSize } from 'react-autosize-container'
export const TestExample = () => (
<AutoSize>
{({ width, height }) => (
<span>
My container is {width}px x {height}px
</span>
)}
</AutoSize>
)
```