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

/react-autosize-container/

    Package Sidebar

    Install

    npm i react-autosize-container

    Weekly Downloads

    7

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    10.3 kB

    Total Files

    10

    Last publish

    Collaborators

    • fookoo