For AI agents: the documentation index is at llms.txt. Markdown versions are available by appending .md to any page URL, including this page's markdown.
Compactors
Control how layouts pack and collide.
Compactors are pluggable strategies that determine how items pack when space
opens up and how collisions are resolved. Pass a Compactor to the compactor
prop on DndGrid, or use them with responsive layouts.
Built-in compactors
| Compactor | Behavior |
|---|---|
verticalCompactor | Default. Packs items upward by row. |
horizontalCompactor | Packs items left-to-right, wrapping to the next row. |
noCompactor | Leaves items where they are, no packing. |
verticalOverlapCompactor | Vertical mode but allows overlap. |
horizontalOverlapCompactor | Horizontal mode but allows overlap. |
fastVerticalCompactor | Faster vertical packing for large layouts. |
fastHorizontalCompactor | Faster horizontal packing for large layouts. |
fastVerticalOverlapCompactor | Fast vertical mode with overlap allowed. |
fastHorizontalOverlapCompactor | Fast horizontal mode with overlap allowed. |
import {
verticalCompactor,
horizontalCompactor,
noCompactor,
fastVerticalCompactor,
Published with Edda