AutoResizer

Decorator component that automatically adjusts the width and height of a single child

Props

classNamestring

Class name for the component

widthnumber

the width of the component, will be the container's width if not set

heightnumber

the height of the component, will be the container's width if not set

childrenfuncrequired

A callback function to render the children component The handler is of the shape of ({ width, height }) => node

onResizefunc

A callback function when the size of the table container changed if the width and height are not set The handler is of the shape of ({ width, height }) => *