{"repo":"bvaughn/react-virtualized-auto-sizer","free":true,"listed":false,"github":"https://github.com/bvaughn/react-virtualized-auto-sizer","clone":"git clone https://github.com/bvaughn/react-virtualized-auto-sizer.git","description":"Standalone version of the AutoSizer component from react-virtualized","language":"TypeScript","stars":672,"topics":["layout","react","reactjs","resize","size","virtualization","windowing"],"license":"MIT","category":"ui-components","readme_excerpt":"react-virtualized-auto-sizer : Measures the available width and height of an HTMLElement and passes those values as props to a Child component. Refer to the docs for usage examples. [!NOTE] This package began as a fork of the AutoSizer component from react-virtualized, and was intended for use with earlier versions of react-window. More recent versions of react-window use ResizeObserver natively and do not require this package. If you like this project, 🎉 become a sponsor or ☕ buy me a coffee Install FAQs Frequently asked questions can be found here. Documentation AutoSizer Measures the available width and height of its parent HTMLElement and passes those values as width and height props to its children . ℹ️ This component began as a fork of the javascript-detect-element-resize package. Required props None Optional props Name Description box Corresponds to the ResizeObserver box parameter. Sets which box model the observer will observe changes to. border-box : Size of the box border area as defined in CSS. content-box : Size of the content area as defined in CSS. device-pixel-content-box : The size of the content area as defined in CSS, in device pixels, before applying any CSS transforms on the element or its ancestors. className Class name to be applied to the auto-sizer HTMLElement . data-testid Test id attribute to interop with frameworks like Testing Library . id Unique id attribute to attach to root DOM element. nonce Nonce used for inline StyleSheet in browsers/enviro","default_branch":null,"files":null,"tree":[],"storefront":"/r/bvaughn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bvaughn/react-virtualized-auto-sizer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}