react-autosize-container
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

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>
)

Package Sidebar

Install

npm i react-autosize-container

Weekly Downloads

47

Version

1.0.9

License

MIT

Unpacked Size

10.3 kB

Total Files

10

Last publish

Collaborators

  • fookoo