Overview of masonic features
mainmasonic is a virtualized masonry grid component for React. Key features include:
- Virtualization: Uses a red-black interval tree for
O(log n + m)lookup performance, allowing it to render hundreds of thousands of items efficiently. - Autosizing: The grid automatically recalculates item sizes if content changes or resizes (e.g., when an image lazily loads).
- TypeScript Support: Provides full type safety and autocomplete.
- Versatility: Provides access to constituent parts of the
<Masonry>component. You can disable virtualization by providing an infinite value to theoverscanByprop (not recommended for large lists).